]> git.pld-linux.org Git - packages/php.git/blame - php-fastcgi.patch
outdated
[packages/php.git] / php-fastcgi.patch
CommitLineData
7a5af891
JR
1--- php-4.0.5/sapi/fastcgi/config.m4~ Tue Mar 20 19:13:20 2001
2+++ php-4.0.5/sapi/fastcgi/config.m4 Sun May 6 19:40:08 2001
3@@ -7,10 +7,10 @@
4 FASTCGIPATH=$withval
5 fi
6 test -f "$FASTCGIPATH/lib/libfcgi.a" || AC_MSG_ERROR(Unable to find libfcgi.a in $FASTCGIPATH/lib)
7- test -f "$FASTCGIPATH/include/fastcgi.h" || AC_MSG_ERROR(Unable to find fastcgi.h in $FASTCGIPATH/include)
8+ test -f "$FASTCGIPATH/include/fastcgi/fastcgi.h" || AC_MSG_ERROR(Unable to find fastcgi.h in $FASTCGIPATH/include)
9 PHP_SAPI=fastcgi
10 PHP_LIBS=$FASTCGIPATH/lib/libfcgi.a
11- AC_ADD_INCLUDE($FASTCGIPATH/include)
12+ AC_ADD_INCLUDE($FASTCGIPATH/include/fastcgi)
13 EXT_PROGRAM_LDADD="$EXT_PROGRAM_LDADD $FASTCGIPATH/lib/libfcgi.a"
14 INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_PROGRAM \$(bindir)/$SAPI_FASTCGI"
15 RESULT="yes"
16--- php-4.0.5/sapi/fastcgi/fastcgi.c~ Tue Mar 27 18:29:45 2001
17+++ php-4.0.5/sapi/fastcgi/fastcgi.c Sun May 6 22:21:50 2001
18@@ -197,6 +197,11 @@
19 struct stat st;
20 char *pi = getenv( "PATH_INFO" );
21 char *pt = getenv( "PATH_TRANSLATED" );
22+
23+ if (!pi)
24+ pi = getenv( "SCRIPT_NAME" );
25+ if (!pt)
26+ pt = getenv( "SCRIPT_FILENAME" );
27 path_info = strdup( pi );
28
29 SG(request_info).request_method = getenv("REQUEST_METHOD");
This page took 0.044128 seconds and 4 git commands to generate.