xref: /PHP-8.0/Zend/tests/bug39018_2.phpt (revision b2248789)
1--TEST--
2Bug #39018 [2] (Error control operator '@' fails to suppress "Uninitialized string offset")
3--FILE--
4<?php
5
6error_reporting(E_ALL);
7
8$foo = 'test';
9$x = @$foo[6];
10
11var_dump(@($foo[100] . $foo[130]));
12
13?>
14--EXPECT--
15string(0) ""
16