php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20335 Cant override php.ini settings in .htaccess
Submitted: 2002-11-10 03:29 UTC Modified: 2002-11-10 13:35 UTC
From: daniel at electroteque dot org Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.3.0-pre2 OS: Redhat 7.2
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: daniel at electroteque dot org
New email:
PHP Version: OS:

 

 [2002-11-10 03:29 UTC] daniel at electroteque dot org
Come across a wierd config bug that happened when i moved from 4.2.2 to 4.3pre2

I have turned register_globals to off in php.ini

register_globals = Off

I explicitly turn register_globals to on for sites that arent compliant and that will break , have tried different methods like so

php_flag register_globals 1
php_value register_globals 1

php_flag register_globals On
php_value register_globals On

php_flag "register_globals" "1"
php_value "register_globals" "1"

none of these work used to work by just going

php_value register_globals On

what could be the problem ?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-10 13:35 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

There was a bug that prevented 1 being recognized as an "On" parameter inside .htaccess, this has just been fixed.
In the latest CVS
php_flag register_globals On
or
php_flag register_globals 1

will work.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 18:01:30 2024 UTC