From:             epommier at lfdj dot com
Operating system: Sun OS
PHP version:      5.0.4
PHP Bug Type:     Scripting Engine problem
Bug description:  ISSET behaviour changes between 4.x and 5.x with variables 
variable.

Description:
------------
When testing if a variable variable, which is not set, is set the result
is different between 4.x and 5.x.
PHP 5.x should behave as PHP 4.x.
We didn't find any bug related to this description.
Best regards.

Reproduce code:
---------------
unset($var_tmp);
$var = "var_tmp";
if(isset($$var))
        echo "var_tmp is set.";
else
        echo "var_tmp is not set.";

Expected result:
----------------
var_tmp is not set.

Actual result:
--------------
var_tmp is set.

-- 
Edit bug report at http://bugs.php.net/?id=34039&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34039&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34039&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34039&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34039&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34039&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34039&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34039&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34039&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34039&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34039&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34039&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34039&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34039&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34039&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34039&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34039&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34039&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34039&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34039&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34039&r=mysqlcfg

Reply via email to