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