mirror of
https://github.com/php/php-src.git
synced 2024-10-05 08:46:11 +00:00
21 lines
325 B
Plaintext
21 lines
325 B
Plaintext
|
--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--
|