diff options
| author | Marcus Boerger <helly@php.net> | 2005-03-11 00:22:28 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2005-03-11 00:22:28 +0000 |
| commit | 1d85c3fe80b3b354e66561e430bf3f950a567536 (patch) | |
| tree | 419fc1c848636b31c89deeacdb0b9c1d108525c2 /ext | |
| parent | faae6ac15946a0b6b0fdda46aca1f9255bd3d836 (diff) | |
| download | php-git-1d85c3fe80b3b354e66561e430bf3f950a567536.tar.gz | |
- Times have changed - php 5 relevant version now
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/tests/serialize/bug31402.phpt | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/ext/standard/tests/serialize/bug31402.phpt b/ext/standard/tests/serialize/bug31402.phpt index be1810b824..9db838d717 100644 --- a/ext/standard/tests/serialize/bug31402.phpt +++ b/ext/standard/tests/serialize/bug31402.phpt @@ -19,7 +19,8 @@ class TestY { function __construct() { $this->A[1] = new TestX(1); - $this->A[2] = new TestX(2); + $this->A[2] = & new TestX(2); + $this->A[3] = & $this->A[2]; $this->B = $this->A[1]; } } @@ -31,17 +32,23 @@ $after = unserialize($ser); var_dump($before, $after); ?> +===DONE=== --EXPECTF-- object(TestY)#%d (2) { ["A"]=> - array(2) { + array(3) { [1]=> object(TestX)#%d (1) { ["i"]=> int(1) } [2]=> - object(TestX)#%d (1) { + &object(TestX)#%d (1) { + ["i"]=> + int(2) + } + [3]=> + &object(TestX)#%d (1) { ["i"]=> int(2) } @@ -54,21 +61,27 @@ object(TestY)#%d (2) { } object(TestY)#%d (2) { ["A"]=> - array(2) { + array(3) { [1]=> - &object(TestX)#%d (1) { + object(TestX)#%d (1) { ["i"]=> int(1) } [2]=> - object(TestX)#%d (1) { + &object(TestX)#%d (1) { + ["i"]=> + int(2) + } + [3]=> + &object(TestX)#%d (1) { ["i"]=> int(2) } } ["B"]=> - &object(TestX)#%d (1) { + object(TestX)#%d (1) { ["i"]=> int(1) } } +===DONE=== |
