php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27972 register globals not loading from ini file
Submitted: 2004-04-13 07:10 UTC Modified: 2004-04-13 12:28 UTC
From: megan dot boardman at rweinnogy dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.3.5 OS: UNIX 5.1 ALPHA
Private report: No CVE-ID: None
 [2004-04-13 07:10 UTC] megan dot boardman at rweinnogy dot com
Description:
------------
I have some legacy scripts that require register_globals to be 'on'.  I had this working under 4.3.3 but upgraded this morning to 4.3.5 and it no longer works, even though I'm using the same ini file.

Basic behaviour is that webforms generated by the PHP will not post - i.e. variables created by posting are not available in the scope of the PHP script.  (We had this problem upon upgrading from PHP 3 to PHP 4.3.3 but it went away upon switching on register_globals.)

Running echo(ini_get('register_globals')) prints 0.

Running phpinfo() tells me that the path to php.ini  is /usr/local/lib.

In /usr/local/lib/php.ini I have register_globals = On and safe_mode=off.

Configure line is: './configure' '--with-oci8=/opt/oracle/product/8.1.7' '--with-apxs=/usr/internet/httpd/bin/apxs'



Reproduce code:
---------------
echo(ini_get('register_globals'))

Expected result:
----------------
Expect it to print 1 when php.ini file says register_globals = On.

Actual result:
--------------
0

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-13 07:40 UTC] megan dot boardman at rweinnogy dot com
Problem is not present against 4.3.4.

i.e. Following the same installation procedures and using the same php.ini file, with register_globals=On:
- 4.3.4 reports register_globals as "On" (1 in echo) and allows the webforms to be posted
- 4.3.5 reports register_globals as "Off" (0 in echo) and prevents webforms from  being posted
 [2004-04-13 12:28 UTC] sniper@php.net
You're doing something really wrong.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC