php-src/Zend/tests/bug47704.phpt

10 lines
212 B
Plaintext
Raw Normal View History

--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