Bug #15678 Updated: isset fails for 4.1.1 and CVS version

From: Date: Thu, 28 Feb 2002 09:29:14 +0000
Subject: Bug #15678 Updated: isset fails for 4.1.1 and CVS version
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1262@lists.php.net to get a copy of this message
ID: 15678 Updated by: yohgaki@php.net Reported By: alberty@neptunelabs.de Status: Critical Bug Type: Variables related Operating System: i686-pc-linux-gnu PHP Version: 4.0CVS-2002-02-2 New Comment: OOPS. isset() must not return FALSE when value is not set. should be isset() must not return TRUE when value is not set. Previous Comments: ------------------------------------------------------------------------ [2002-02-28 03:47:28] yohgaki@php.net This is critical bug in any cases. isset() must not return FALSE when value is not set. This is enough to be a critical bug. This bug is not only hard to find, but also can make security hole in script. Don't you have script relys on isset() to grant access? (Well, I don't have actually since I like everything to be explicit, but some users will have) ------------------------------------------------------------------------ [2002-02-27 07:24:00] derick@php.net not critical ------------------------------------------------------------------------ [2002-02-23 22:59:43] yohgaki@php.net It should be fixed before 4.2.0 at least. Hopefully before 4.1.2 :) ------------------------------------------------------------------------ [2002-02-22 11:41:57] mfischer@php.net Btw, this has nothing to do with current CVS. This applies to at least 4.1.0 I tested (so there's nothing broken since current stable and CVS; if it's broken, it is for a long time) ------------------------------------------------------------------------ [2002-02-22 11:17:03] alberty@neptunelabs.de Andrey Hristov wrote: >The answer to your question: ><?php > var_dump((int) 'y'); >?> ??? this is not the answer of the second question and also not to the first one, because <?php $c['c']='Hallo'; echo $c[0]; ?> results: "Notice: Undefined offset: 0 in foo.php on line 2" ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/15678 -- Edit this bug report at http://bugs.php.net/?id=15678&edit=1

« previous php.bugs (#1262) next »