Skip to content

Commit c15bb9a

Browse files
committed
Restore error message incorrectly removed by commit 10d43c4 (related to GH-15497)
1 parent 17e313e commit c15bb9a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/opcache/zend_shared_alloc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,11 @@ void *zend_shared_alloc(size_t size)
366366
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Possible integer overflow in shared memory allocation (%zu + %zu)", size, PLATFORM_ALIGNMENT);
367367
}
368368

369+
#if 1
370+
if (!ZCG(locked)) {
371+
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
372+
}
373+
#endif
369374
if (block_size > ZSMMG(shared_free)) { /* No hope to find a big-enough block */
370375
SHARED_ALLOC_FAILED();
371376
return NULL;

0 commit comments

Comments
 (0)