xref: /PHP-5.4/Zend/tests/bug39018_2.phpt (revision ddc8a631)
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
11print @($foo[100] + $foo[130]);
12
13print "\nDone\n";
14
15?>
16--EXPECT--
170
18Done
19