php-src/Zend/tests/bug41919.phpt
2007-07-12 23:34:32 +00:00

13 lines
218 B
PHP

--TEST--
Bug #41919 (crash in string to array conversion)
--FILE--
<?php
$foo="50";
$foo[3]->bar[1] = "bang";
echo "ok\n";
?>
--EXPECTF--
Warning: Cannot use string offset as an array in %s/bug41919.php on line %d
ok