xref: /PHP-8.1/Zend/tests/bug79779.phpt (revision 6a9d934b)
1--TEST--
2Bug #79779: Assertion failure when assigning property of string offset by reference
3--FILE--
4<?php
5$str = "";
6$str[1]->a = &$b;
7?>
8--EXPECTF--
9Fatal error: Uncaught Error: Cannot use string offset as an object in %s:%d
10Stack trace:
11#0 {main}
12  thrown in %s on line %d
13