php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28208 register_globals on related issue
Submitted: 2004-04-28 18:36 UTC Modified: 2004-04-28 19:39 UTC
From: jafar dot hosseinzadeh at childrens dot harvard dot edu Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.6 OS: Linux AS 2.1
Private report: No CVE-ID: None
 [2004-04-28 18:36 UTC] jafar dot hosseinzadeh at childrens dot harvard dot edu
Description:
------------
Hi, I have installed and configured, Linux AS 2.1+ Apache 1.3.29+PHP 4.3.6--->

System  Linux 2.4.9-e.34smp #1 SMP Wed Dec 10 16:52:22 EST 2003 i686   
Configure Command  
'./configure' '--prefix=/usr/local/php' '--with-xml' '--with-mysql=/usr/local/mysql-standard-4.0.16-pc-linux-i686' '--with-gd' '--with-jpeg' '--with-zlib' '--with-png' '--enable-track-vars' '--with-apxs=/usr/local/apache/bin/apxs' '--with-oci8=/nfs/pasteur/u1/apps/oracle/product/10.1.0.2/db_gen' '--with-openssl=/usr' '--with-ldap=/usr' '--enable-sigchil'  

==>I have set the register_globals=On however, I still can not pass the var the old way mypage?myvar=var.  
I can get $myvar only if I use :
$newvar=$_get["myvar"];
It does not work if I do this:
$newvar=$myvar;
I do not get anything even though the register_globals are set to on....Please advise....Regards   --jh



Reproduce code:
---------------
echo "Hello $myvar";
//the avbove out put=> Hello  
$newvar=$_get["myvar"];

echo "Hello the new way $newvar";
//the output of the above is => Hello "whatever is typed after the ?";


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-28 19:33 UTC] jafar dot hosseinzadeh at childrens dot harvard dot edu
Hi ,

I corrected the problem by doing the following:

-->create sim link of /etc/php.ini file in:
/usr/local/php/lib or <your install prefix/lib>.
if you do this the correct php.ini file is loaded and aslo, the phpinfo will the path to php.ini correctly, in the /etc/.  This work around seems to be working fine...
Regards,   --jh
 [2004-04-28 19:39 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 13:01:35 2024 UTC