ID: 37727 Updated by: [EMAIL PROTECTED] Reported By: decryptus at gmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: * PHP Version: 4.4.2 New Comment:
'bar' is converted to 0 and $foo[0] IS set. No bug here. Previous Comments: ------------------------------------------------------------------------ [2006-06-07 13:07:03] decryptus at gmail dot com Description: ------------ There is a problem when I test if an array key exists on a string with the function isset(). isset return true but $foo is not an array and error_reporting doesn't display an error. Reproduce code: --------------- $foo = 'foo'; var_dump($foo); echo '<br />'; var_dump(isset($foo['bar'])); Expected result: ---------------- string(3) "foo" bool(false) Actual result: -------------- string(3) "foo" bool(true) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37727&edit=1