From: jafar dot hosseinzadeh at childrens dot harvard dot edu Operating system: Linux AS 2.1 PHP version: 4.3.6 PHP Bug Type: Session related Bug description: register_globals on related issue
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 bug report at http://bugs.php.net/?id=28208&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28208&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28208&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28208&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28208&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28208&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28208&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28208&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28208&r=support Expected behavior: http://bugs.php.net/fix.php?id=28208&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28208&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28208&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28208&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28208&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28208&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28208&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28208&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28208&r=float