#28208 [Opn->Bgs]: register_globals on related issue
| From: | derick@php.net | Date: | Wed, 28 Apr 2004 17:39:16 +0000 |
| Subject: | #28208 [Opn->Bgs]: register_globals on related issue | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58961@lists.php.net to get a copy of this message | ||
ID: 28208
Updated by: derick@php.net
Reported By: jafar dot hosseinzadeh at childrens dot harvard dot
edu
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Linux AS 2.1
PHP Version: 4.3.6
New Comment:
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.
.
Previous Comments:
------------------------------------------------------------------------
[2004-04-28 19:33:55] 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 18:36:05] 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 ?";
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28208&edit=1