mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Restore error message incorrectly removed by commit 10d43c4
(related to GH-15497)
This commit is contained in:
parent
17e313ee62
commit
c15bb9afe2
1 changed files with 5 additions and 0 deletions
|
@ -366,6 +366,11 @@ void *zend_shared_alloc(size_t size)
|
|||
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Possible integer overflow in shared memory allocation (%zu + %zu)", size, PLATFORM_ALIGNMENT);
|
||||
}
|
||||
|
||||
#if 1
|
||||
if (!ZCG(locked)) {
|
||||
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
|
||||
}
|
||||
#endif
|
||||
if (block_size > ZSMMG(shared_free)) { /* No hope to find a big-enough block */
|
||||
SHARED_ALLOC_FAILED();
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue