mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
13 lines
270 B
PHP
13 lines
270 B
PHP
--TEST--
|
|
string offset 002
|
|
--FILE--
|
|
<?php
|
|
$a = "aaa";
|
|
$x = array(&$a[1]);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot create references to/from string offsets in %sstr_offset_002.php:3
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %sstr_offset_002.php on line 3
|