php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35599 variable variables($$s) allow bypassing variable name syntax
Submitted: 2005-12-08 12:41 UTC Modified: 2005-12-08 12:48 UTC
From: shri_phadte at yahoo dot co dot in Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.1.1 OS: any
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: shri_phadte at yahoo dot co dot in
New email:
PHP Version: OS:

 

 [2005-12-08 12:41 UTC] shri_phadte at yahoo dot co dot in
Description:
------------
when i assign a value to a variable using the contents of some other variable probably it does not check for validity of variable name and assigns value to it.


Reproduce code:
---------------
error_reporting(E_ALL);
$test= 111 ;
$$test="This Should Not Be Allowed";
echo $$test;


Expected result:
----------------
should be a parse error because a variable name is an integer

Actual result:
--------------
This Should Not Be Allowed

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-08 12:48 UTC] tony2001@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-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 15 13:00:02 2025 UTC