summaryrefslogtreecommitdiff
path: root/Zend/tests/bug39018_2.phpt
blob: 81831d51e06f323ffd671aa15871160e3680c683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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