|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-07 15:52 UTC] iliaa@php.net
[2004-06-08 10:01 UTC] jg at b-one dot net
[2004-06-08 14:35 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 21:00:01 2025 UTC |
Description: ------------ pcre-regexp + safemode affects output of header("WWW-Authenticate: Basic realm=\"ABC\"); and causes internal server error with mod_fcgi. The problem is in 4.3.7 and latest stable cvs 2004-06-07 In safemode without pcre-regexp php return WWW-Authenticate: Basic realm="1000" With pcre-regexp php returns WWW-Authenticate: Basic realm="ABC-1000" I suspect the extra space between key and value to cause mod_fcgi to "internal server error". Reproduce code: --------------- <? header("HTTP/1.1 401 Unauthorized"); header("WWW-Authenticate: Basic realm=\"ABC\""); echo "I need your credentials"; ?> Expected result: ---------------- Status: 401 Content-type: text/html X-Powered-By: PHP/4.3.7 WWW-Authenticate: Basic realm="ABC-1000" Actual result: -------------- without pcre-regexp: Status: 401 Content-type: text/html X-Powered-By: PHP/4.3.7 WWW-Authenticate: Basic realm="1000" with pcre-regexp: Status: 401 Content-type: text/html X-Powered-By: PHP/4.3.7 WWW-Authenticate: Basic realm="ABC-1000" (notice extra space)