cvs: php-src /tests/classes static_this.phpt

From: Date: Mon, 04 Oct 2004 17:30:54 +0000
Subject: cvs: php-src /tests/classes static_this.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-28882@lists.php.net to get a copy of this message
helly Mon Oct 4 13:30:54 2004 EDT Added files: /php-src/tests/classes static_this.phpt Log: - Add new test http://cvs.php.net/co.php/php-src/tests/classes/static_this.phpt?r=1.1&p=1 Index: php-src/tests/classes/static_this.phpt +++ php-src/tests/classes/static_this.phpt --TEST-- $this can be an argument to a static function --FILE-- <?php class TestClass { function __construct() { self::Test1(); $this->Test1(); } static function Test1() { var_dump($this); } static function Test2($this) { var_dump($this); } } $obj = new TestClass; TestClass::Test2(new stdClass); ?> ===DONE=== --EXPECTF-- Notice: Undefined variable: this in %sstatic_this.php on line %d NULL Notice: Undefined variable: this in %sstatic_this.php on line %d NULL object(stdClass)#%d (0) { } ===DONE===

« previous php.cvs (#28882) next »