|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-08-27 00:22 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 00:00:02 2025 UTC |
First reported for 3.0-FINAL but still exists in 3.0.2a; if compiling PHP for CGI use with FORCE_CGI_REDIRECT, the PHP_SELF variable becomes set to the URL/location of the PHP binary instead of the script - when used in an anchor tag (A/HREF), this creates URLs that cannot be selected (as PHP complains that it was called directly). PHP_SELF should be set to the script being run (URI), not the PHP binary in FORCE_CGI_REDIRECT cases. The hack/fix for 3.0-FINAL was to wrap the current code (in main.c) within: #if FORCE_CGI_REDIRECT /* original code, modified to only append path_info and not script_name */ #else /* original code goes here */ #endif Could this please be wrapped into the CVS so that it's included in 3.0.3??