mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
An uninitialized DateTime is UNEXPECTED (#13492)
This commit is contained in:
parent
d539c4b8f6
commit
805326fe18
@ -326,7 +326,7 @@ static void date_throw_uninitialized_error(zend_class_entry *ce)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define DATE_CHECK_INITIALIZED(member, ce) \
|
#define DATE_CHECK_INITIALIZED(member, ce) \
|
||||||
if (!(member)) { \
|
if (UNEXPECTED(!member)) { \
|
||||||
date_throw_uninitialized_error(ce); \
|
date_throw_uninitialized_error(ce); \
|
||||||
RETURN_THROWS(); \
|
RETURN_THROWS(); \
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user