summaryrefslogtreecommitdiff
path: root/Zend/tests/dereference_003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/dereference_003.phpt')
-rw-r--r--Zend/tests/dereference_003.phpt36
1 files changed, 18 insertions, 18 deletions
diff --git a/Zend/tests/dereference_003.phpt b/Zend/tests/dereference_003.phpt
index 3a54875964..93bdb19684 100644
--- a/Zend/tests/dereference_003.phpt
+++ b/Zend/tests/dereference_003.phpt
@@ -6,24 +6,24 @@ Testing array dereference on method calls
error_reporting(E_ALL);
class foo {
- public $x = 2;
- public function a() {
- $x = array();
- $x[] = new foo;
- return $x;
- }
- public function b() {
- return array(1.2, array(new self));
- }
- public function c() {
- $a = array();
- $b = &$a;
- $b[] = true;
- return $a;
- }
- public function d() {
- return $this->b();
- }
+ public $x = 2;
+ public function a() {
+ $x = array();
+ $x[] = new foo;
+ return $x;
+ }
+ public function b() {
+ return array(1.2, array(new self));
+ }
+ public function c() {
+ $a = array();
+ $b = &$a;
+ $b[] = true;
+ return $a;
+ }
+ public function d() {
+ return $this->b();
+ }
}
$foo = new foo;