#20353 [Opn->Fbk]: Change of isset behaviour

From: Date: Mon, 11 Nov 2002 09:46:53 +0000
Subject: #20353 [Opn->Fbk]: Change of isset behaviour
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24524@lists.php.net to get a copy of this message
 ID:               20353
 Updated by:       derick@php.net
 Reported By:      bariou@brasnah.com
-Status:           Open
+Status:           Feedback
 Bug Type:         Strings related
 Operating System: Red hat 7.2
 PHP Version:      4.3.0-pre2
 New Comment:

I can't reproduce this, works fine for me:

[derick@kossu derick]$ php
<?php
$foo = "";

if (isset($foo)) {
	echo "IN HERE!\n";
}
?>
IN HERE!
[derick@kossu derick]$ php -v
PHP 4.3.0-pre2 (cli)
Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
    with eXtended Debugger (xdebug) v1.1.0dev, Copyright (c) 2002 JDI
Media Solutions, by Derick Rethans


Please post a full reproducing script that we can copy & paste, but
keep it as small as possible.

Derick



Previous Comments:
------------------------------------------------------------------------

[2002-11-11 03:42:11] bariou@brasnah.com

On 4.2.2 I've 

if(isset($namevar)){
//some statements
// It comes here if $namevar is set, even if $namevar="";
}

On 4.3.0-pre2 I've 

if(isset($namevar)){
//some statements
// It doesn't come if $namevar="";
}

You can't change that to much legacy....

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20353&edit=1



Thread (7 messages)

« previous php.bugs (#24524) next »