mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
14 lines
196 B
PHP
14 lines
196 B
PHP
--TEST--
|
|
Bug #29883 (isset gives invalid values on strings)
|
|
--FILE--
|
|
<?php
|
|
$x = "bug";
|
|
var_dump(isset($x[-1]));
|
|
var_dump(isset($x["1"]));
|
|
echo $x["1"]."\n";
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(true)
|
|
u
|