summaryrefslogtreecommitdiff
path: root/ext/json/tests/bug72069.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/tests/bug72069.phpt')
-rw-r--r--ext/json/tests/bug72069.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/tests/bug72069.phpt b/ext/json/tests/bug72069.phpt
index 500df25af7..a37aa38ea1 100644
--- a/ext/json/tests/bug72069.phpt
+++ b/ext/json/tests/bug72069.phpt
@@ -3,14 +3,14 @@ Bug #72069 (Behavior \JsonSerializable different from json_encode)
--FILE--
<?php
-$result = json_encode(['end' => json_decode(null, true)]);
+$result = json_encode(['end' => json_decode('', true)]);
var_dump($result);
class A implements \JsonSerializable
{
function jsonSerialize()
{
- return ['end' => json_decode(null, true)];
+ return ['end' => json_decode('', true)];
}
}
$a = new A();