note 75807 deleted from function.isset by colder
| From: | colder@php.net | Date: | Mon, 18 Jun 2007 17:34:27 +0000 |
| Subject: | note 75807 deleted from function.isset by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127544@lists.php.net to get a copy of this message | ||
Note Submitter: andarin2
Reason: 5
----
isset wrongly returns true for an array key if the variable is a string.
Slawek's example goes on failing in version 5, at least in my tests on 5.2.1 (linux box) and on
5.1.1 (Windows box).
<?php
$foo = 'a little string';
echo isset($foo)?'yes ':'no ', isset($foo['aaaa'])?'yes
':'no ';
?>
returns "yes yes" instead of due "yes no".