php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20533 problem unsetting variables by deref
Submitted: 2002-11-20 23:42 UTC Modified: 2002-11-21 00:42 UTC
From: sputnik at reflexx dot net Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.2.3 OS: FreeBSD 4.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sputnik at reflexx dot net
New email:
PHP Version: OS:

 

 [2002-11-20 23:42 UTC] sputnik at reflexx dot net
pKillVar is defined as a global elsewhere in the script.
Its value is "pendingScope".


global $pKillVar;
$delete_me = $pKillVar;
global $$delete_me;
unset($$delete_me);

does NOT work. however:

$delete_me = "somevar";
global $$delete_me;
unset($$delete_me);

does. Seems to be a problem unsetting variables in the global scope. Have been having numerous problems related to such.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-21 00:42 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC