]> granicus.if.org Git - php/commitdiff
Refcount may have different meaning in PHP NG
authorXinchen Hui <laruence@php.net>
Thu, 19 Jun 2014 14:36:48 +0000 (22:36 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 19 Jun 2014 14:36:48 +0000 (22:36 +0800)
ext/mysqli/tests/mysqli_result_references_mysqlnd.phpt

index 384f85fbbd67fd4765640fa318f685d927451245..9b96c4f4ec070f6adfe96c16434f9d6fbd372ad0 100644 (file)
@@ -57,63 +57,63 @@ if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1))
        print "done!";
 ?>
 --EXPECTF--
-array(1) refcount(2){
+array(1) refcount(%d){
   [0]=>
-  array(4) refcount(1){
+  array(4) refcount(%d){
     [%u|b%"row_ref"]=>
-    &NULL refcount(2)
+    &NULL
     [%u|b%"row_copy"]=>
     array(2) refcount(1){
       [%u|b%"id"]=>
-      %unicode|string%(1) "1" refcount(2)
+      %unicode|string%(1) "1" refcount(%d)
       [%u|b%"label"]=>
-      %unicode|string%(1) "a" refcount(2)
+      %unicode|string%(1) "a" refcount(%d)
     }
     [%u|b%"id_ref"]=>
-    %unicode|string%(1) "1" refcount(1)
+    %unicode|string%(1) "1" refcount(%d)
     [%u|b%"id_copy"]=>
-    %unicode|string%(1) "1" refcount(1)
+    %unicode|string%(1) "1" refcount(%d)
   }
 }
-array(2) refcount(2){
+array(2) refcount(%d){
   [0]=>
-  array(4) refcount(1){
+  array(4) refcount(%d){
     [%u|b%"row_ref"]=>
-    &NULL refcount(2)
+    &NULL
     [%u|b%"row_copy"]=>
-    array(2) refcount(1){
+    array(2) refcount(%d){
       [%u|b%"id"]=>
-      %unicode|string%(1) "1" refcount(1)
+      %unicode|string%(1) "1" refcount(%d)
       [%u|b%"label"]=>
-      %unicode|string%(1) "a" refcount(1)
+      %unicode|string%(1) "a" refcount(%d)
     }
     [%u|b%"id_ref"]=>
-    %unicode|string%(1) "1" refcount(1)
+    %unicode|string%(1) "1" refcount(%d)
     [%u|b%"id_copy"]=>
-    %unicode|string%(1) "1" refcount(1)
+    %unicode|string%(1) "1" refcount(%d)
   }
   [1]=>
-  array(5) refcount(1){
+  array(5) refcount(%d){
     [%u|b%"row_ref"]=>
-    &array(2) refcount(2){
+    &array(2) refcount(%d){
       [%u|b%"id"]=>
-      &%unicode|string%(1) "2" refcount(2)
+      &%unicode|string%(1) "2" refcount(%d)
       [%u|b%"label"]=>
-      %unicode|string%(1) "b" refcount(2)
+      %unicode|string%(1) "b" refcount(%d)
     }
     [%u|b%"row_copy"]=>
-    array(2) refcount(1){
+    array(2) refcount(%d){
       [%u|b%"id"]=>
-      %unicode|string%(1) "2" refcount(1)
+      %unicode|string%(1) "2" refcount(%d)
       [%u|b%"label"]=>
-      %unicode|string%(1) "b" refcount(2)
+      %unicode|string%(1) "b" refcount(%d)
     }
     [%u|b%"id_ref"]=>
-    &%unicode|string%(1) "2" refcount(2)
+    &%unicode|string%(1) "2" refcount(%d)
     [%u|b%"id_copy"]=>
-    %unicode|string%(1) "2" refcount(1)
+    %unicode|string%(1) "2" refcount(%d)
     [%u|b%"id_copy_mod"]=>
-    long(2) refcount(1)
+    long(2)
   }
 }
-done!
\ No newline at end of file
+done!