|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-10 08:24 UTC] ceco at noxis dot net
the following problem, a script works flawlessly without safe mode, but when safe mode enabled, the row
header("WWW-Authenticate: Basic realm=\"anything\"");
causes very strange error: apache doesn't return anything (no headers, no content) - size 0 (i checked it even through telnet).
when i comment this line, just the HTML message for the incorrect user or password is displayed (which should be displayed when cancel is hit by the user)
the code below is
header("HTTP/1.0 401 Unauthorized");
echo 'incorrect user or password';
die();
I'm not 100% percent sure, but I think it is not error of configuring php
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
Same error: * SuSE 7.3, Apache/1.3.20 (Linux/SuSE), SuSE kernel 2.4.10-4GB * installed php4.1.1 ./configure --with-apxs=/usr/sbin/apxs \ --with-gd \ --with-freetype-dir=/usr/include/freetype2 \ --with-zlib \ --disable-debug \ --enable-safe-mode \ --with-exec-dir \ --enable-calendar \ --enable-magic-quotes \ --with-mysql=/usr \ --enable-ftp \ --enable-memory-limit \ --enable-track-vars \ --with-pdflib \ --with-jpeg-dir=/usr/lib \ --with-config-file-path=/usr/local/lib \ --with-png-dir=/usr/lib * copied php.ini-recommended to /usr/local/lib/php.ini * activated safe_mode in php.ini * when using header("WWW-Authenticate: ... process dies * error_log: [notice] child pid 14153 exit signal Segmentation fault (11) * with "safe_mode = off" getting user/pass dialog * will post more info when needed