php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21000 can not set register_globals=off
Submitted: 2002-12-13 15:30 UTC Modified: 2002-12-14 14:51 UTC
From: mojdeh at und dot edu Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.3.0RC2 OS: solaris 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mojdeh at und dot edu
New email:
PHP Version: OS:

 

 [2002-12-13 15:30 UTC] mojdeh at und dot edu
I was always able to change the register_globals settings in /usr/local/php.ini file (which is a copy of the php.ini-dist) and chenge the setting to on. Now eventhough I have register_globals=On in my php.ini The phpinfo function shows that it is set to Off and as a result non of my php pages are working.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-13 16:19 UTC] msopacua@php.net
What's the ini path reported in phpinfo()?
 [2002-12-13 16:22 UTC] mojdeh at und dot edu
the php.ini path shows as /opt/sfw/lib/php.ini whihc is the same as /usr/local/lib/php.ini  because we have a symbolink link to /usr/local/ in /opt/sfw.
 [2002-12-14 03:45 UTC] sniper@php.net
Are you using Apache? Version? Are you sure it's not set off
in some .htaccess file or httpd.conf ??

Are you sure that php.ini is actually READ by PHP? 
(change some other setting)

 [2002-12-14 14:29 UTC] mojdeh at und dot edu
I found out what was causing the problem. As strange as it sounds, I had to change the group ownership of the /usr/local/lib/php.ini to be the same as my web server. That fixed the problem.

Thanks for your help.
Mojdeh,
 [2002-12-14 14:51 UTC] derick@php.net
user error -> bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 10:01:29 2024 UTC