We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82fc47e commit acdab8fCopy full SHA for acdab8f
sapi/apache2handler/php_functions.c
@@ -58,13 +58,11 @@ php_apache2_info_struct php_apache2_info;
58
59
static request_rec *php_apache_lookup_uri(char *filename TSRMLS_DC)
60
{
61
- php_struct *ctx;
+ php_struct *ctx = SG(server_context);
62
63
- if (!filename) {
+ if (!filename || !ctx || !ctx->r) {
64
return NULL;
65
}
66
-
67
- ctx = SG(server_context);
68
69
return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters);
70
0 commit comments