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:
@@ -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(); \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user