On Thursday 06 March 2008 23:51:47 Edward Z. Yang wrote: > These examples don't cause any problems because they're not in the > object context, so $this is just another, ordinary variable. If you > include'd the files inside something like: > > class Foo { > public function bar() { > include 'this-test.php'; > } > } > > there should be an error
php -r 'class A { function __construct() { $this+=41; var_dump($this); }} new A;' int(42) "should" is the right word here ;) Regards, Stefan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php