mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
d30cd7d7e7
Closes GH-5590
22 lines
421 B
PHP
22 lines
421 B
PHP
--TEST--
|
|
Bug #29015 (Incorrect behavior of member vars(non string ones)-numeric mem vars und others)
|
|
--FILE--
|
|
<?php
|
|
$a = new stdClass();
|
|
$x = "";
|
|
$a->$x = "string('')";
|
|
var_dump($a);
|
|
$a->{"\0"} = 42;
|
|
var_dump($a);
|
|
?>
|
|
--EXPECTF--
|
|
object(stdClass)#1 (1) {
|
|
[""]=>
|
|
string(10) "string('')"
|
|
}
|
|
|
|
Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|