blob: db51d9eb20a0034dce6a401c0da74985c5581f3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--TEST--
Bug #47704 (crashes on some "bad" operations with string offsets)
--FILE--
<?php
$s = "abd";
$s[0]->a += 1;
?>
--EXPECTF--
Fatal error: Uncaught exception 'EngineException' with message 'Cannot use string offset as an object' in %sbug47704.php:%d
Stack trace:
#0 {main}
thrown in %sbug47704.php on line %d
|