From:             shanxe at gmail dot com
Operating system: Linux
PHP version:      4.4.0
PHP Bug Type:     Apache related
Bug description:  505 error Using php_value in .htaccess 

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.


-- 
Edit bug report at http://bugs.php.net/?id=34959&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34959&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34959&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34959&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34959&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34959&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34959&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34959&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34959&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34959&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34959&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34959&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34959&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34959&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34959&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34959&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34959&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34959&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34959&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34959&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34959&r=mysqlcfg

Reply via email to