cvs: php-src /ext/json/tests bug46215.phpt
| From: | Felipe Pena | Date: | Thu, 02 Oct 2008 03:31:27 +0000 |
| Subject: | cvs: php-src /ext/json/tests bug46215.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-53331@lists.php.net to get a copy of this message | ||
felipe Thu Oct 2 03:31:27 2008 UTC
Added files:
/php-src/ext/json/tests bug46215.phpt
Log:
- New test
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/bug46215.phpt?view=markup&rev=1.1
Index: php-src/ext/json/tests/bug46215.phpt
+++ php-src/ext/json/tests/bug46215.phpt
--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
(
)
)