php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34039 ISSET behaviour changes between 4.x and 5.x with variables variable.
Submitted: 2005-08-08 17:26 UTC Modified: 2005-08-16 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: epommier at lfdj dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.4 OS: Sun OS
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-08-08 17:26 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-08 18:38 UTC] tony2001@php.net
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.
 [2005-08-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 08:01:33 2024 UTC