mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
6e6280a388
- we don't use NULL for overlaoded objects for ages - fixed array/object mess
16 lines
287 B
PHP
16 lines
287 B
PHP
--TEST--
|
|
Bug #41813 (segmentation fault when using string offset as an object)
|
|
--FILE--
|
|
<?php
|
|
|
|
$foo = "50";
|
|
$foo[0]->bar = "xyz";
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot use string offset as an object in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|