mirror of
https://github.com/php/php-src.git
synced 2025-01-15 08:14:23 +08:00
13 lines
281 B
PHP
13 lines
281 B
PHP
--TEST--
|
|
Bug #47704 (crashes on some "bad" operations with string offsets)
|
|
--FILE--
|
|
<?php
|
|
$s = "abd";
|
|
$s[0]->a += 1;
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot use string offset as an object in %sbug47704.php:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %sbug47704.php on line %d
|