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
(
)
)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php