mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
6a9d934b2c
ASSIGN_OBJ_REF was not handling in zend_wrong_string_offset.
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
|