bug39018_2.phpt 246 B

123456789101112131415161718
  1. --TEST--
  2. Bug #39018 [2] (Error control operator '@' fails to suppress "Uninitialized string offset")
  3. --FILE--
  4. <?php
  5. error_reporting(E_ALL);
  6. $foo = 'test';
  7. $x = @$foo[6];
  8. print @($foo[100] + $foo[130]);
  9. print "\nDone\n";
  10. ?>
  11. --EXPECT--
  12. 0
  13. Done