xref: /PHP-7.0/Zend/tests/bug29015.phpt (revision e97d5fab)
1--TEST--
2Bug #29015 (Incorrect behavior of member vars(non string ones)-numeric mem vars und others)
3--FILE--
4<?php
5$a = new stdClass();
6$x = "";
7$a->$x = "string('')";
8var_dump($a);
9?>
10--EXPECTF--
11Fatal error: Uncaught Error: Cannot access empty property in %sbug29015.php:4
12Stack trace:
13#0 {main}
14  thrown in %sbug29015.php on line 4
15