tests & fixes
[m6w6/ext-pq] / tests / persistent001.phpt
index b2c72c30e57a91f2e1d9e4b0e34ded966b3f5f7a..781dfdeb93ba8631e6212b433ddec3e38451244b 100644 (file)
@@ -13,7 +13,14 @@ for ($i=0; $i<100; ++$i) {
 
        if ($i % 2) {
                $t = new pq\Transaction($c);
+               $c->listen("chan", function($chan, $msg) {
+                       // dummy
+               });
+               $e = new pq\Event($c, pq\Event::RESULT, function($c, $res) {
+               });
        }
+       
+       if (!($i%10)) gc_collect_cycles();
 
        $c->exec("");
 }
@@ -23,7 +30,7 @@ DONE
 --EXPECTF--
 Test
 array(1) {
-  ["%s"]=>
+  ["%S"]=>
   array(2) {
     ["used"]=>
     int(1)