Browse Source

Another test case

PEAR_1_4DEV
Zeev Suraski 23 years ago
parent
commit
eab449ded0
  1. 20
      tests/lang/bug23922.phpt

20
tests/lang/bug23922.phpt

@ -0,0 +1,20 @@
--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--
Loading…
Cancel
Save