php-src/Zend/tests/bug41813.phpt
Antony Dovgal feb142cb79 add test
2007-06-27 08:55:27 +00:00

13 lines
229 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: Cannot use string offset as an array in %s on line %d