blob: 22c4aaa7d47f9aa6b66252509a171843ee4439ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--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();
?>
--EXPECTF--
Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d
|