From: Greg Beaver Date: Sun, 13 Jan 2008 22:55:02 +0000 (+0000) Subject: use correct macro X-Git-Tag: RELEASE_2_0_0a1~919 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=184e9345118d673c688109deed8c66d6e4923294;p=php use correct macro --- diff --git a/main/streams/streams.c b/main/streams/streams.c index 61a73eebde..a466767eca 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -2184,7 +2184,7 @@ PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, char if (options & REPORT_ERRORS) { /* protocol[n] probably isn't '\0' */ char *protocol_dup = estrndup(protocol, n); - if (!PG(allow_url_fopen)) { + if (!php_stream_allow_url_fopen(protocol, n)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s:// wrapper is disabled in the server configuration by allow_url_fopen=0", protocol_dup); } else { php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s:// wrapper is disabled in the server configuration by allow_url_include=0", protocol_dup);