#44952 [Opn->Asn]: isset() does not checks correctly variable variable

From: Date: Mon, 12 May 2008 09:09:59 +0000
Subject: #44952 [Opn->Asn]: isset() does not checks correctly variable variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124902@lists.php.net to get a copy of this message
ID: 44952 Updated by: dmitry@php.net Reported By: vesko at webstudiobulgaria dot com -Status: Open +Status: Assigned Bug Type: Scripting Engine problem Operating System: Debian Lenny PHP Version: 5.3CVS-2008-05-09 (snap) -Assigned To: +Assigned To: dmitry New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-05-09 08:00:45] vesko at webstudiobulgaria dot com Description: ------------ When giving variable variable argument to isset() it is not checking correctly. It was working property with the snap from 21 February (and of course works correctly with php 5.2 branch). Reproduce code: --------------- <? $var_name = 'unexisting'; if(isset($$var_name)) { print $$var_name; } ?> Expected result: ---------------- //print nothing Actual result: -------------- Notice: Undefined variable: unexisting in /home/local/test/t3.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44952&edit=1

« previous php.bugs (#124902) next »