Skip to content

Commit adb3d52

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Access violation when ALLOC_FALLBACK fixed
2 parents 04b1bc3 + 5b8e941 commit adb3d52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/opcache/zend_shared_alloc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size)
211211
}
212212
#if ENABLE_FILE_CACHE_FALLBACK
213213
if (ALLOC_FALLBACK == res) {
214+
smm_shared_globals = NULL;
214215
return ALLOC_FALLBACK;
215216
}
216217
#endif
@@ -236,6 +237,7 @@ int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size)
236237
}
237238
#if ENABLE_FILE_CACHE_FALLBACK
238239
if (ALLOC_FALLBACK == res) {
240+
smm_shared_globals = NULL;
239241
return ALLOC_FALLBACK;
240242
}
241243
#endif

0 commit comments

Comments
 (0)