You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
328 B

--TEST--
Bug #23922 (scope doesn't properly propagate into internal functions)
--FILE--
<?php
class foo
{
public $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--