xref: /PHP-5.4/Zend/tests/bug41813.phpt (revision feb142cb)
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: Cannot use string offset as an array in %s on line %d
13