zeev Wed Jul 2 14:05:45 2003 EDT Added files: /php-src/tests/lang bug23922.phpt Log: Another test case
Index: php-src/tests/lang/bug23922.phpt +++ php-src/tests/lang/bug23922.phpt --TEST-- Bug #23922 (scope doesn't properly propagate into internal functions) --FILE-- <?php class foo { var $foo = 1; function as_string() { assert('$this->foo == 1'); } function as_expr() { assert($this->foo == 1); } } $foo = new foo(); $foo->as_expr(); $foo->as_string(); ?> --EXPECT-- -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php