PHP 4.0 Bug #4925 Updated: .htaccess problem with custom 401 ErrorDocument (Apache 1.3.12, PHP 4.0.0)
| From: | sniper@php.net | Date: | Wed, 08 Nov 2000 23:48:03 +0000 |
| Subject: | PHP 4.0 Bug #4925 Updated: .htaccess problem with custom 401 ErrorDocument (Apache 1.3.12, PHP 4.0.0) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37473@lists.php.net to get a copy of this message | ||
ID: 4925
Updated by: sniper
Reported By: tapio.ryhanen@oulu.fi
Status: Feedback
Bug Type: *General Issues
Assigned To: zak
Comments:
Does this still happen with latest snapshot from http://snaps.php.net ??
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-08-23 18:26:55] zak@php.net
Henryk Plötz (HenrykPloetz@gmx.de) was kind enough to confirm this bug for me.
Here is his message
-------------------
I've encountered this same problem myself and it seems to be a general issue with PHP4 and
ErrorDocuments.
I've tried it under Linux kernel 2.2.14 with Apache 1.3.12 and PHP 4.0.1pl2 as well as with
SunOS 5.7, Apache 1.3.12 and PHP 4.0.0.
When specifying an ErrorDocument to be parsed by PHP the returned HTTP-Status-Code is changed to 200
OK regardless of its previous value.
This causes the browser to not display any password dialogue.
The same happens with every other Status-Code (I've tried 401, 404 and 500) which all end up to
be sent and logged as 200 OK.
---------------------------------------------------------------------------
[2000-07-26 20:20:32] zak@php.net
I will try to confirm this bug.
---------------------------------------------------------------------------
[2000-06-09 09:34:19] tapio.ryhanen@oulu.fi
As soon as I specify
ErrorDocument 401 /error.html
for my virtual server, I can't log into a secured directory under it using .htaccess/htpasswd,
I get an error page instead.
I've specified other Errodocs for 403/404/500, etc. and I can log in fine with
the username/password prompt for http://www.virtualhost.com/foo/ but as soon
as I add the ErrorDocument 401 /error.html for virtualhost.com in httpd.conf I
get an error message when I goto http://www.virtualhost.com/foo/ instead of
the user/pass box.
I'm using Apache 1.3.12 with PHP 4.0.0 on Linux 2.2.16.
Specifying custom errordocs worked just fine with php version 3.0.15 and Apache 1.3.12. After
upgrading to PHP v. 4.0.0 custom errordocs no longer work. Any ideas?
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=4925