Merge branch 'PHP-8.3'

* PHP-8.3:
  Prevent possible incorrect optimization caused by ZEND_ASSUME()
This commit is contained in:
Dmitry Stogov 2024-08-29 23:12:56 +03:00
commit 80efb3aba4
No known key found for this signature in database

View file

@ -366,13 +366,12 @@ static size_t zend_shared_alloc_get_largest_free_block(void)
void *zend_shared_alloc(size_t size)
{
ZEND_ASSERT(ZCG(locked));
int i;
size_t block_size = ZEND_ALIGNED_SIZE(size);
#if 1
if (!ZCG(locked)) {
ZEND_ASSERT(0 && "Shared memory lock not obtained");
zend_accel_error_noreturn(ACCEL_LOG_ERROR, "Shared memory lock not obtained");
}
#endif