mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Access violation when ALLOC_FALLBACK fixed
Close GH-11312
This commit is contained in:
parent
6267601f84
commit
8946b7b141
2 changed files with 3 additions and 0 deletions
1
NEWS
1
NEWS
|
@ -4,6 +4,7 @@ PHP NEWS
|
|||
|
||||
- Opcache:
|
||||
. Fix allocation loop in zend_shared_alloc_startup(). (nielsdos)
|
||||
. Access violation on smm_shared_globals with ALLOC_FALLBACK. (KoudelkaB)
|
||||
|
||||
- Standard:
|
||||
. Fix access on NULL pointer in array_merge_recursive(). (ilutov)
|
||||
|
|
|
@ -191,6 +191,7 @@ int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size)
|
|||
}
|
||||
#if ENABLE_FILE_CACHE_FALLBACK
|
||||
if (ALLOC_FALLBACK == res) {
|
||||
smm_shared_globals = NULL;
|
||||
return ALLOC_FALLBACK;
|
||||
}
|
||||
#endif
|
||||
|
@ -216,6 +217,7 @@ int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size)
|
|||
}
|
||||
#if ENABLE_FILE_CACHE_FALLBACK
|
||||
if (ALLOC_FALLBACK == res) {
|
||||
smm_shared_globals = NULL;
|
||||
return ALLOC_FALLBACK;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue