4 <?php include "_skipif.inc"; ?>
11 for ($i=0; $i<100; ++$i) {
12 $c = new pq\Connection(PQ_DSN, pq\Connection::PERSISTENT);
15 $t = new pq\Transaction($c);
16 $c->listen("chan", function($chan, $msg) {
19 $c->on(pq\Connection::EVENT_RESULT, function($c, $res) {
23 if (!($i%10)) gc_collect_cycles();
27 var_dump(raphf\stat_persistent_handles()->{"pq\\Connection"});