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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(); \
}