php-src/Zend/tests/property_guard_hash_val.phpt
Nikita Popov a009d370e9 Merge branch 'PHP-7.4'
* PHP-7.4:
  Fix assumption about property guard hash value
2020-09-15 15:27:17 +02:00

17 lines
261 B
PHP

--TEST--
Test property guard hash value assumption
--FILE--
<?php
class Test {
function __get($var) {
return $this->{$var.''};
}
}
$test = new Test;
var_dump($test->x);
?>
--EXPECTF--
Warning: Undefined property: Test::$x in %s on line %d
NULL