diff options
Diffstat (limited to 'tests/lang/030.phpt')
-rw-r--r-- | tests/lang/030.phpt | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/lang/030.phpt b/tests/lang/030.phpt deleted file mode 100644 index 162997fca9..0000000000 --- a/tests/lang/030.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -$this in constructor test ---POST-- ---GET-- ---FILE-- -<?php -class foo { - function foo($name) { - $GLOBALS['List']= &$this; - $this->Name = $name; - $GLOBALS['List']->echoName(); } - - function echoName() { - $GLOBALS['names'][]=$this->Name; } } - -function &foo2(&$foo) { - return $foo; } - - -$bar1 =& new foo('constructor'); -$bar1->Name = 'outside'; -$bar1->echoName(); -$List->echoName(); - -$bar1 =& foo2(new foo('constructor')); -$bar1->Name = 'outside'; -$bar1->echoName(); - -$List->echoName(); - -print ($names==array('constructor','outside','outside','constructor','outside','outside')) ? 'success':'failure'; ?> ---EXPECT-- -success
\ No newline at end of file |