mirror of
https://github.com/php/php-src.git
synced 2024-12-22 08:20:23 +08:00
19 lines
246 B
Plaintext
19 lines
246 B
Plaintext
|
--TEST--
|
||
|
Bug #39018 [2] (Error control operator '@' fails to suppress "Uninitialized string offset")
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
error_reporting(E_ALL);
|
||
|
|
||
|
$foo = 'test';
|
||
|
$x = @$foo[6];
|
||
|
|
||
|
print @($foo[100] + $foo[130]);
|
||
|
|
||
|
print "\nDone\n";
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
0
|
||
|
Done
|