Skip to content

Commit 2227fef

Browse files
committed
Fix noreturn with warning that should be an error
E_WARNING does not actually abort.
1 parent 8df8550 commit 2227fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_alloc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ static zend_always_inline void zend_mm_hugepage(void* ptr, size_t size)
710710
struct memcntl_mha m = {.mha_cmd = MHA_MAPSIZE_VA, .mha_pagesize = ZEND_MM_CHUNK_SIZE, .mha_flags = 0};
711711
(void)memcntl(ptr, size, MC_HAT_ADVISE, (char *)&m, 0, 0);
712712
#elif !defined(VM_FLAGS_SUPERPAGE_SIZE_2MB) && !defined(MAP_ALIGNED_SUPER)
713-
zend_error_noreturn(E_WARNING, "huge_pages: thp unsupported on this platform");
713+
zend_error_noreturn(E_ERROR, "huge_pages: thp unsupported on this platform");
714714
#endif
715715
}
716716

0 commit comments

Comments
 (0)