blob: 7264f5a322b74c108df9cc89d7948500705095b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--TEST--
Bug #73303: Scope not inherited by eval in assert()
--FILE--
<?php
class Test {
public $prop;
public function main(){
assert('self::checkCacheKey(get_object_vars($this))');
echo 'Success';
}
private static function checkCacheKey($obj_properties){
return count($obj_properties) == 1;
}
}
$obj = new Test();
$obj->main();
?>
--EXPECTF--
Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d
Success
|