xref: /PHP-7.3/Zend/tests/bug47704.phpt (revision e97d5fab)
1--TEST--
2Bug #47704 (crashes on some "bad" operations with string offsets)
3--FILE--
4<?php
5$s = "abd";
6$s[0]->a += 1;
7?>
8--EXPECTF--
9Fatal error: Uncaught Error: Cannot use string offset as an object in %sbug47704.php:%d
10Stack trace:
11#0 {main}
12  thrown in %sbug47704.php on line %d
13