php-src/Zend/tests/bug47704.phpt
2009-03-18 12:53:17 +00:00

10 lines
212 B
PHP

--TEST--
Bug #47704 (crashes on some "bad" operations with string offsets)
--FILE--
<?php
$s = "abd";
$s[0]->a += 1;
?>
--EXPECTF--
Fatal error: Cannot use string offset as an object in %sbug47704.php on line %d