diff options
Diffstat (limited to 'Zend/tests/dereference_012.phpt')
-rw-r--r-- | Zend/tests/dereference_012.phpt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Zend/tests/dereference_012.phpt b/Zend/tests/dereference_012.phpt index ab70957a0a..7c1501e73f 100644 --- a/Zend/tests/dereference_012.phpt +++ b/Zend/tests/dereference_012.phpt @@ -4,18 +4,18 @@ Testing array dereferencing on return of a method with and without reference <?php class foo { - static $x = array(); - - public function &a() { - self::$x = array(1, 2, 3); - return self::$x; - } - - public function b() { - $x = array(1); - $x[] = 2; - return $x; - } + static $x = array(); + + public function &a() { + self::$x = array(1, 2, 3); + return self::$x; + } + + public function b() { + $x = array(1); + $x[] = 2; + return $x; + } } $foo = new foo; |