Fix for apache2+mod_rewrite.
Obtained from: PHP CVS
This commit is contained in:
parent
c1cf174568
commit
59c11832bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147097
1 changed files with 11 additions and 0 deletions
11
lang/php4/files/patch-sapi_apache2handler_sapi_apache2.c
Normal file
11
lang/php4/files/patch-sapi_apache2handler_sapi_apache2.c
Normal file
|
@ -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();
|
||||
}
|
Loading…
Reference in a new issue