xref: /PHP-7.0/Zend/tests/bug41919.phpt (revision e97d5fab)
1--TEST--
2Bug #41919 (crash in string to array conversion)
3--FILE--
4<?php
5$foo="50";
6$foo[3]->bar[1] = "bang";
7
8echo "ok\n";
9?>
10--EXPECTF--
11Fatal error: Uncaught Error: Cannot use string offset as an object in %sbug41919.php:%d
12Stack trace:
13#0 {main}
14  thrown in %sbug41919.php on line %d
15