com php-src: String reference counters may be increased when string copied: ext/mysqli/tests/mysqli_result_references.phpt
| From: | Dmitry Stogov | Date: | Thu, 19 Mar 2015 20:42:39 +0000 |
| Subject: | com php-src: String reference counters may be increased when string copied: ext/mysqli/tests/mysqli_result_references.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85651@lists.php.net to get a copy of this message | ||
Commit: 452a5d8e6bf7839477514e041d2a480ca4402191
Author: Dmitry Stogov <dmitry@zend.com> Thu, 19 Mar 2015 23:42:39 +0300
Parents: ed9d3f9a50466b5f4a2a16f24227f39204e99a0b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=452a5d8e6bf7839477514e041d2a480ca4402191
Log:
String reference counters may be increased when string copied
Changed paths:
M ext/mysqli/tests/mysqli_result_references.phpt
Diff:
diff --git a/ext/mysqli/tests/mysqli_result_references.phpt
b/ext/mysqli/tests/mysqli_result_references.phpt
index e009267..6d80dc1 100644
--- a/ext/mysqli/tests/mysqli_result_references.phpt
+++ b/ext/mysqli/tests/mysqli_result_references.phpt
@@ -87,35 +87,35 @@ array(7) refcount(2){
[%u|b%"id"]=>
long(1)
[%u|b%"label"]=>
- %unicode|string%(1) "a" refcount(1)
+ %unicode|string%(1) "a" refcount(%d)
}
[1]=>
array(2) refcount(1){
[%u|b%"id"]=>
long(2)
[%u|b%"label"]=>
- %unicode|string%(1) "b" refcount(1)
+ %unicode|string%(1) "b" refcount(%d)
}
[2]=>
array(2) refcount(1){
[%u|b%"id"]=>
long(1)
[%u|b%"label"]=>
- %unicode|string%(1) "a" refcount(1)
+ %unicode|string%(1) "a" refcount(%d)
}
[3]=>
array(2) refcount(1){
[%u|b%"id"]=>
long(2)
[%u|b%"label"]=>
- %unicode|string%(1) "b" refcount(1)
+ %unicode|string%(1) "b" refcount(%d)
}
[4]=>
array(3) refcount(1){
[%u|b%"id"]=>
&long(3)
[%u|b%"label"]=>
- %unicode|string%(1) "a" refcount(1)
+ %unicode|string%(1) "a" refcount(%d)
[%u|b%"id2"]=>
&long(3)
}
@@ -124,7 +124,7 @@ array(7) refcount(2){
[%u|b%"id"]=>
&long(4)
[%u|b%"label"]=>
- %unicode|string%(1) "b" refcount(1)
+ %unicode|string%(1) "b" refcount(%d)
[%u|b%"id2"]=>
&long(4)
}
@@ -146,9 +146,9 @@ array(1) refcount(2){
[0]=>
array(2) refcount(1){
[%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)
}
}
done!