mirror of
https://github.com/php/php-src.git
synced 2026-03-25 16:52:18 +01:00
13 lines
277 B
PHP
13 lines
277 B
PHP
--TEST--
|
|
Bug #79779: Assertion failure when assigning property of string offset by reference
|
|
--FILE--
|
|
<?php
|
|
$str = "";
|
|
$str[1]->a = &$b;
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot use string offset as an object in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|