mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
15 lines
288 B
PHP
15 lines
288 B
PHP
--TEST--
|
|
Bug #41919 (crash in string to array conversion)
|
|
--FILE--
|
|
<?php
|
|
$foo="50";
|
|
$foo[3]->bar[1] = "bang";
|
|
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot use string offset as an object in %sbug41919.php:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %sbug41919.php on line %d
|