1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

An uninitialized DateTime is UNEXPECTED (#13492)

This commit is contained in:
Marc Bennewitz
2024-03-18 17:38:30 +01:00
committed by GitHub
parent d539c4b8f6
commit 805326fe18

View File

@@ -326,7 +326,7 @@ static void date_throw_uninitialized_error(zend_class_entry *ce)
}
#define DATE_CHECK_INITIALIZED(member, ce) \
if (!(member)) { \
if (UNEXPECTED(!member)) { \
date_throw_uninitialized_error(ce); \
RETURN_THROWS(); \
}