mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
a009d370e9
* PHP-7.4: Fix assumption about property guard hash value
17 lines
261 B
PHP
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
|