diff options
author | ale <ale@FreeBSD.org> | 2005-11-03 17:17:22 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2005-11-03 17:17:22 +0800 |
commit | 9ee992bfeb28f1736c88370c29c1c882830b866c (patch) | |
tree | 8c6de996d1935bf69e615177491a6a20a1257313 /lang | |
parent | 650e33962935ee24912130c89307de50643c702d (diff) | |
download | freebsd-ports-gnome-9ee992bfeb28f1736c88370c29c1c882830b866c.tar.gz freebsd-ports-gnome-9ee992bfeb28f1736c88370c29c1c882830b866c.tar.zst freebsd-ports-gnome-9ee992bfeb28f1736c88370c29c1c882830b866c.zip |
Fix for apache2+mod_rewrite.
Obtained from: PHP CVS
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php4/files/patch-sapi_apache2handler_sapi_apache2.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/php4/files/patch-sapi_apache2handler_sapi_apache2.c b/lang/php4/files/patch-sapi_apache2handler_sapi_apache2.c new file mode 100644 index 000000000000..dde4289f4726 --- /dev/null +++ b/lang/php4/files/patch-sapi_apache2handler_sapi_apache2.c @@ -0,0 +1,11 @@ +--- sapi/apache2handler/sapi_apache2.c.orig Thu Nov 3 10:13:33 2005 ++++ sapi/apache2handler/sapi_apache2.c Thu Nov 3 10:14:41 2005 +@@ -535,7 +535,7 @@ + if (!parent_req) { + parent_req = ctx->r; + } +- if (parent_req && strcmp(parent_req->handler, PHP_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SOURCE_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SCRIPT)) { ++ if (parent_req && parent_req->handler && strcmp(parent_req->handler, PHP_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SOURCE_MAGIC_TYPE) && strcmp(parent_req->handler, PHP_SCRIPT)) { + if (php_apache_request_ctor(r, ctx TSRMLS_CC)!=SUCCESS) { + zend_bailout(); + } |