You can clone with
Cannot retrieve contributors at this time
pconnect tester for PHPThis is a small tool helping while testing persistent connections with PHP,without the need for installing and configuring a web server and thecomplexity added by such a web server.This tool simulates multiple requests by running a PHP script multiple timessimulating multiple requests. The executed script can then open persistentconnections and verify the connection on following requests.This simplifies automation of tests and memory checking.InstallationFor installation put this code into a directory sapi/pconn inside a PHPsource tree, then run `./buildconf` and `./configure` PHP using the--enable-pconn switch. For testing multithreading make use ofthe --enable-maintainer-zts switch.When running `make` a binary `sapi/pconn/pconn` is created. Currently this won'tbe installed by make install.This package includes a simple sample:$ ./pconn -a samples/start.php -z samples/shutdown.php -n10 samples/main.php If your PHP was compiled with --enable-maintainer-zts you can run multiplethreads:$ ./pconn -a samples/start.php -z samples/shutdown.php -n10 -t5 samples/main.php This will first call start.php then 10x main.php and shutdown.php in the secondcase this will be done in 5 threads in parallel. This sample also demonstratestransport of data with $_PCONN which is a thread-specific container for datawhich is available in all requests, similar to $_SESSION. As user you can put anything serializable in there.