]> granicus.if.org Git - php/commitdiff
Support long path also when reading from file cache
authorAnatol Belski <ab@php.net>
Thu, 12 Jul 2018 07:26:50 +0000 (09:26 +0200)
committerAnatol Belski <ab@php.net>
Thu, 12 Jul 2018 07:26:50 +0000 (09:26 +0200)
ext/opcache/zend_file_cache.c

index 61907600490f3b83ce91cd890cf5ff705adcdab5..8455738ed328a8930ef7434b30cef3c28ef18055 100644 (file)
@@ -1346,7 +1346,11 @@ zend_persistent_script *zend_file_cache_script_load(zend_file_handle *file_handl
        }
        filename = zend_file_cache_get_bin_file_path(full_path);
 
+#ifndef ZEND_WIN32
        fd = open(filename, O_RDONLY | O_BINARY);
+#else
+       fd = php_win32_ioutil_open(filename, O_RDONLY | O_BINARY);
+#endif
        if (fd < 0) {
                efree(filename);
                return NULL;