httpd: support env var SCRIPT_FILENAME
Dirk Clemens
develop at cle-mens.de
Sat Sep 3 09:35:14 UTC 2005
php needs the Variable SCRIPT_FILENAME.
And here is the patch:
@@ -1179,6 +1185,8 @@
argp[0] = strrchr( purl, '/' ) + 1;
/* but script argp[0] must have absolute path and chdiring to
this */
if(realpath(purl + 1, realpath_buff) != NULL) {
+ // now we can set SCRIPT_FILENAME
+ addEnv("SCRIPT_FILENAME","",realpath_buff);
script = strrchr(realpath_buff, '/');
if(script) {
*script = '\0';
Dirk
More information about the busybox
mailing list