summaryrefslogtreecommitdiff
path: root/Zend/tests/bug47704.phpt
blob: 306443f8bbaa2d3a4aef6e4d5bec4cb648adfc4b (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 EngineException: Cannot use string offset as an object in %sbug47704.php:%d
Stack trace:
#0 {main}
  thrown in %sbug47704.php on line %d