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