Accessing variables defined in unit testcase file in src file using phing
I have defined some variables in my test file then i call a function from my test file to src file and verify the result. While using phing it is not working, but if i use php or phpunit to verify it is working fine.
Example: add.php (source file) (present in the src directory)
Code:
<?php
function add_two_numbers()
{
global $a,$b; /* defined in test file*/
return ($a + $b);
}
?>
How can we maintain the counters for each process of apache without using getmypid()
Suppose I have a php script. Now i am benchmarking that script using apache benchmark tool. Let us say with the command. ab -n 10 -c 4 filename.php Many different apache processes will be created so as to fulfill the requests.
Suppose total 4 processes are created to fulfill this request. Now, Let us say that the processes have ids p1,p2,p3,p4 and requests are r1,r2,.....r10.
As an example assume how requests are completed....