mirror of
https://github.com/php/php-src.git
synced 2026-03-31 20:53:00 +02:00
24 lines
366 B
PHP
24 lines
366 B
PHP
--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();
|
|
|
|
?>
|
|
--EXPECT--
|
|
Success
|