1--TEST-- 2Bug #29883 (isset gives invalid values on strings) 3--FILE-- 4<?php 5$x = "bug"; 6var_dump(isset($x[-10])); 7var_dump(isset($x[1])); 8var_dump(isset($x["1"])); 9var_dump($x[-10])."\n"; 10var_dump($x[1])."\n"; 11var_dump($x["1"])."\n"; 12?> 13--EXPECTF-- 14bool(false) 15bool(true) 16bool(true) 17 18Warning: Uninitialized string offset -10 in %s on line %d 19string(0) "" 20string(1) "u" 21string(1) "u" 22