php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24288 register_globals=On in PHP.ini doesn't work
Submitted: 2003-06-22 13:54 UTC Modified: 2003-06-23 21:18 UTC
From: joel2a at yahoo dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.3.2 OS: Windows NT 4.0
Private report: No CVE-ID: None
 [2003-06-22 13:54 UTC] joel2a at yahoo dot com
Description:
------------
Using Isapi php4isapi.dll PHP on Sambar 5.3 Web Server AND php4apache2.dll with Apache 2.0 on Windows NT 4.0.

When setting register_globals=On in php.ini it doesn't work.
register_globals stays Off no matter what.

I tried the php_flag register_globals on in .htaccess and that doesn't work either.

This is verified by looking at phpinfo.php after the change is made.

The problem is that if you have a setting in php.ini for register_globals=On then it should work.








Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-22 13:55 UTC] derick@php.net
Are you sure that you modified the correct php.ini file? 
 [2003-06-22 14:30 UTC] joel2a at yahoo dot com
Yes I modified the correct php.ini. I only have one in the Winnt  directory. And I double checked it and re-double checked it several times using two different web servers.
I also checked the directory of php.ini in the phpinfo listing.
And I just rechecked it again before sending this reply.

However the .htaccess fix did work locally only with the Apache web server.
 [2003-06-22 15:39 UTC] philip@php.net
Windows users claim php.ini isn't being read many times, and there are many reasons why this claim is bogus so forgive our desire to be 100% certain.

In phpinfo(), where it says this:
Configuration File (php.ini) Path

Please post exactly what the value says for this.

 [2003-06-22 16:04 UTC] joel2a at yahoo dot com
Ok, it says this:
Configuration File (php.ini) Path D:\WINNT\php.ini
 [2003-06-22 16:10 UTC] joel2a at yahoo dot com
In addition I know the php file is being read because the phpinfo() error log says: 
error_log e:\php\4-3-2\error.txt

Which is what I set it to in the php.ini file.
 [2003-06-23 21:18 UTC] sniper@php.net
Works fine here. You propably just installed PHP the wrong way. Try reboot too, make sure you have the webserver stopped totally before you install anything and that you REALLY don't have old php4ts.dll anywhere when you copy the new files over..

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