mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
14 lines
323 B
PHP
14 lines
323 B
PHP
--TEST--
|
|
Bug #49866 (Making reference on string offsets crashes PHP)
|
|
--FILE--
|
|
<?php
|
|
$a = "string";
|
|
$b = &$a[1];
|
|
$b = "f";
|
|
echo $a;
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot create references to/from string offsets nor overloaded objects in %sbug49866.php:3
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %sbug49866.php on line 3
|