com php-src: Modify json/tests/pass003 to ignore internal object ID: ext/json/tests/pass003.phpt
| From: | Jakub Zelenka | Date: | Fri, 12 Dec 2014 20:00:08 +0000 |
| Subject: | com php-src: Modify json/tests/pass003 to ignore internal object ID: ext/json/tests/pass003.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84728@lists.php.net to get a copy of this message | ||
Commit: 0bfa245aa3f3994d3095afd696bbd3f0130594ab
Author: Jakub Zelenka <bukka@php.net> Fri, 12 Dec 2014 20:00:08 +0000
Parents: 9e5f687957d532912d062f11dc4f5b2a368e5c4b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0bfa245aa3f3994d3095afd696bbd3f0130594ab
Log:
Modify json/tests/pass003 to ignore internal object ID
Child is now created first - bottom up parsing (LR)
Changed paths:
M ext/json/tests/pass003.phpt
Diff:
diff --git a/ext/json/tests/pass003.phpt b/ext/json/tests/pass003.phpt
index 36da4a1..e82bf5c 100644
--- a/ext/json/tests/pass003.phpt
+++ b/ext/json/tests/pass003.phpt
@@ -39,7 +39,7 @@ $arr = json_decode($arr_enc, true);
var_dump($arr);
?>
---EXPECT--
+--EXPECTF--
Testing:
{
"JSON Test Pattern pass3": {
@@ -49,9 +49,9 @@ Testing:
}
DECODE: AS OBJECT
-object(stdClass)#1 (1) {
+object(stdClass)#%d (1) {
["JSON Test Pattern pass3"]=>
- object(stdClass)#2 (2) {
+ object(stdClass)#%d (2) {
["The outermost value"]=>
string(27) "must be an object or array."
["In this test"]=>
@@ -73,9 +73,9 @@ ENCODE: FROM OBJECT
ENCODE: FROM ARRAY
{"JSON Test Pattern pass3":{"The outermost value":"must be an object or
array.","In this test":"It is an object."}}
DECODE AGAIN: AS OBJECT
-object(stdClass)#3 (1) {
+object(stdClass)#%d (1) {
["JSON Test Pattern pass3"]=>
- object(stdClass)#4 (2) {
+ object(stdClass)#%d (2) {
["The outermost value"]=>
string(27) "must be an object or array."
["In this test"]=>