xref: /PHP-7.2/Zend/tests/bug41813.phpt (revision 17ccbeec)
1--TEST--
2Bug #41813 (segmentation fault when using string offset as an object)
3--FILE--
4<?php
5
6$foo = "50";
7$foo[0]->bar = "xyz";
8
9echo "Done\n";
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Cannot use string offset as an object in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16