--TEST-- persistent handles --SKIPIF-- --FILE-- listen("chan", function($chan, $msg) { // dummy }); $c->on(pq\Connection::EVENT_RESULT, function($c, $res) { }); } if (!($i%10)) gc_collect_cycles(); $c->exec(""); } var_dump(raphf\stat_persistent_handles()->{"pq\\Connection"}); ?> DONE --EXPECTF-- Test array(1) { ["%S"]=> array(2) { ["used"]=> int(1) ["free"]=> int(2) } } DONE