php-8.0.30-src/Zend/tests/bug39018_2.phpt

16 lines
237 B
PHP

--TEST--
Bug #39018 [2] (Error control operator '@' fails to suppress "Uninitialized string offset")
--FILE--
<?php
error_reporting(E_ALL);
$foo = 'test';
$x = @$foo[6];
var_dump(@($foo[100] . $foo[130]));
?>
--EXPECT--
string(0) ""