if ($i % 2) {
$t = new pq\Transaction($c);
+ $c->listen("chan", function($chan, $msg) {
+ // dummy
+ });
+ $c->on(pq\Connection::EVENT_RESULT, function($c, $res) {
+ });
}
+
+ if (!($i%10)) gc_collect_cycles();
$c->exec("");
}
--EXPECTF--
Test
array(1) {
- ["%s"]=>
+ ["%S"]=>
array(2) {
["used"]=>
int(1)