Skip to content

Commit 129c5c1

Browse files
committed
Support long path also when reading from file cache
1 parent 81eb8e7 commit 129c5c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/zend_file_cache.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,11 @@ zend_persistent_script *zend_file_cache_script_load(zend_file_handle *file_handl
13461346
}
13471347
filename = zend_file_cache_get_bin_file_path(full_path);
13481348

1349+
#ifndef ZEND_WIN32
13491350
fd = open(filename, O_RDONLY | O_BINARY);
1351+
#else
1352+
fd = php_win32_ioutil_open(filename, O_RDONLY | O_BINARY);
1353+
#endif
13501354
if (fd < 0) {
13511355
efree(filename);
13521356
return NULL;

0 commit comments

Comments
 (0)