php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34959 505 error Using php_value in .htaccess
Submitted: 2005-10-22 18:57 UTC Modified: 2005-10-23 14:16 UTC
From: shanxe at gmail dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.11 OS: Linux
Private report: No CVE-ID: None
 [2005-10-22 18:57 UTC] shanxe at gmail dot com
Description:
------------
server: Apache 1.3.33
PHP: 4.3.11 with Zend Optimizer enabled
Module: PHP-CGI/0.1b
My site is hosted at a shared hosting Linux server, So I couldn't edit php.ini. I want to set register_globals to off and error_reporting to off, I tried with a .htaccess file with 'php_value register_globals 0' in it. But it backfired with a 505 error. I tried ini_set( ); I tried using 'php_flag register_globals "off"' . But nothing worked. Then I searched Google and came through a lot people having a same error in setting up PHP through .htaccess, when there PHP module is loaded as PHP-CGI/0.1b (Ithink PHP is compiled as CGI). I can unset GLOBAL vars by comparing with GET, But I need an easier solution. Is there a some sort of a work around for this.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-23 14:09 UTC] tony2001@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC