]> granicus.if.org Git - php/commitdiff
use correct macro
authorGreg Beaver <cellog@php.net>
Sun, 13 Jan 2008 22:55:02 +0000 (22:55 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 13 Jan 2008 22:55:02 +0000 (22:55 +0000)
main/streams/streams.c

index 61a73eebdea57d2eb277b5d50f28252c5845d461..a466767ecac862defa9e0ab545e8b143b20db648 100755 (executable)
@@ -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);