]> granicus.if.org Git - php/commitdiff
Don't try to eliminate requre/include with stream wrappers
authorDmitry Stogov <dmitry@zend.com>
Tue, 19 Feb 2019 13:54:51 +0000 (16:54 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 19 Feb 2019 13:54:51 +0000 (16:54 +0300)
ext/opcache/ZendAccelerator.c

index 3c6178231317a7c7af29afe20f366d19929b140b..38e60c5a1610c8e680737aa75ddaafd448edc881 100644 (file)
@@ -3533,6 +3533,9 @@ static void preload_link(void)
 
 static zend_string *preload_resolve_path(zend_string *filename)
 {
+       if (is_stream_path(ZSTR_VAL(filename))) {
+               return NULL;
+       }
        return zend_resolve_path(ZSTR_VAL(filename), ZSTR_LEN(filename));
 }