mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
20 lines
285 B
Plaintext
20 lines
285 B
Plaintext
|
--TEST--
|
||
|
Bug #52484.3 (__set() ignores setting properties with empty names)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class A {
|
||
|
function __get($prop) {
|
||
|
var_dump($this->$prop);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$a = new A();
|
||
|
$prop = null;
|
||
|
|
||
|
var_dump($a->$prop);
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Cannot access empty property in %s on line %d
|