dmitry Tue Jun 21 02:08:12 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/standard/tests/serialize bug31402.phpt Log: Fixed test file (the bug was already fixed) http://cvs.php.net/diff.php/php-src/ext/standard/tests/serialize/bug31402.phpt?r1=1.1.2.1&r2=1.1.2.2&ty=u Index: php-src/ext/standard/tests/serialize/bug31402.phpt diff -u php-src/ext/standard/tests/serialize/bug31402.phpt:1.1.2.1 php-src/ext/standard/tests/serialize/bug31402.phpt:1.1.2.2 --- php-src/ext/standard/tests/serialize/bug31402.phpt:1.1.2.1 Tue Jan 18 06:37:17 2005 +++ php-src/ext/standard/tests/serialize/bug31402.phpt Tue Jun 21 02:08:10 2005 @@ -4,7 +4,7 @@ <?php class X { - var $i; + public $i; function X($i) { $this->i = $i; @@ -12,8 +12,8 @@ } class Y { - var $A = array(); - var $B; + public $A = array(); + public $B; function Y() { $this->A[1] = new X(1); @@ -29,43 +29,43 @@ var_dump($before, $after); ?> ---EXPECT-- -object(y)(2) { +--EXPECTF-- +object(Y)#%d (2) { ["A"]=> array(2) { [1]=> - object(x)(1) { + object(X)#%d (1) { ["i"]=> int(1) } [2]=> - object(x)(1) { + object(X)#%d (1) { ["i"]=> int(2) } } ["B"]=> - object(x)(1) { + object(X)#%d (1) { ["i"]=> int(1) } } -object(y)(2) { +object(Y)#%d (2) { ["A"]=> array(2) { [1]=> - &object(x)(1) { + object(X)#%d (1) { ["i"]=> int(1) } [2]=> - object(x)(1) { + object(X)#%d (1) { ["i"]=> int(2) } } ["B"]=> - &object(x)(1) { + object(X)#%d (1) { ["i"]=> int(1) }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php