#34039 [Opn->Fbk]: ISSET behaviour changes between 4.x and 5.x with variables variable.

From: Date: Mon, 08 Aug 2005 16:38:43 +0000
Subject: #34039 [Opn->Fbk]: ISSET behaviour changes between 4.x and 5.x with variables variable.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83190@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#83190) next »