dis-bench / src /php /php-src /ext /json /tests /bug46215.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
277 Bytes
--TEST--
Bug #46215 (json_encode mutates its parameter and has some class-specific state)
--FILE--
<?php
class foo {
protected $a = array();
}
$a = new foo;
$x = json_encode($a);
print_r($a);
?>
--EXPECT--
foo Object
(
[a:protected] => Array
(
)
)