mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
b743cd72d0
In this case the user may be a FREE.
Also add the test file that I forgot in
3ce472d1a6
.
17 lines
326 B
PHP
17 lines
326 B
PHP
--TEST--
|
|
Invalid string offset use where the actual use may be optimized away
|
|
--FILE--
|
|
<?php
|
|
function test() {
|
|
$a = "";
|
|
$c = array(&$a[0]);
|
|
}
|
|
test();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot create references to/from string offsets in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): test()
|
|
#1 {main}
|
|
thrown in %s on line %d
|