#34039 [Opn->Fbk]: ISSET behaviour changes between 4.x and 5.x with variables variable.
ID: 34039
Updated by: tony2001@php.net
Reported By: epommier at lfdj dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Sun OS
PHP Version: 5.0.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Can't reproduce with latest 5.0 and 5.1.
Previous Comments:
------------------------------------------------------------------------
[2005-08-08 17:26:22] epommier at lfdj dot com
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 this bug report at http://bugs.php.net/?id=34039&edit=1
Thread (2 messages)