ID: 38141 Updated by: [EMAIL PROTECTED] Reported By: martel at post dot pl -Status: Suspended +Status: Bogus Bug Type: Apache2 related Operating System: Linux Gentoo PHP Version: 5.1.4 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Reproduced with a shell script executed as CGI, not a PHP bug (updated Apache bug). Previous Comments: ------------------------------------------------------------------------ [2006-08-05 19:38:46] [EMAIL PROTECTED] I updated the report in Apache bug system. ------------------------------------------------------------------------ [2006-08-03 13:18:37] martel at post dot pl Nick Kew mentioned what the problem may be. These following points are the result of his best guess (it's a direct copy of his words): (1) SCRIPT_NAME is set by ap_add_cgi_vars in Apache's "util_script". (2) PHP presumably calls that somewhere - unless it's reinvented that wheel. (3) The bug *looks like* a case of PHP calling it too early - specifically *before* the rewrite happened - so of course there was no SCRIPT_NAME. (4) So a fix would be for mod_php to call it later. Or maybe even call it twice, if the early call is unavoidable. ------------------------------------------------------------------------ [2006-08-03 12:33:31] martel at post dot pl I have created an issue in the apache bugtracker. After short discussion and a lot of examples they claim it's not an Apache bug but the mod_php one. http://issues.apache.org/bugzilla/show_bug.cgi?id=40102 ------------------------------------------------------------------------ [2006-07-23 12:49:29] [EMAIL PROTECTED] It's some Apache bug/feature since we only set SCRIPT_NAME to whatever Apache returns. ------------------------------------------------------------------------ [2006-07-19 12:19:50] martel at post dot pl Tested it some more. When the RewriteRule is placed under <Directory> or .htaccess it is set correctly. When placed under <VirtualHost> it is initialized with some bogus value. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/38141 -- Edit this bug report at http://bugs.php.net/?id=38141&edit=1