summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-08-13 16:20:29 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-08-13 16:20:29 +0200
commit670036e2a9b4520b8cb14be41625664f96bae4b4 (patch)
tree8f79792494b47eca459b462bc8d3eccf8f203384 /Zend/zend_API.h
parent1511bdae960069e78dd9c3d9756c5ba24271cbfa (diff)
downloadphp-git-670036e2a9b4520b8cb14be41625664f96bae4b4.tar.gz
Use Z_PARAM_CLASS in PDOStatement::fetchObject()
Instead of implementing custom logic.
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index b6f5944078..adf84affd2 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -1405,6 +1405,9 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_argument_value_error(uint32_t arg_num
#define Z_PARAM_CLASS(dest) \
Z_PARAM_CLASS_EX(dest, 0, 0)
+#define Z_PARAM_CLASS_OR_NULL(dest) \
+ Z_PARAM_CLASS_EX(dest, 1, 0)
+
#define Z_PARAM_CLASS_NAME_OR_OBJ_EX(dest, allow_null) \
Z_PARAM_PROLOGUE(0, 0); \
if (UNEXPECTED(!zend_parse_arg_class_name_or_obj(_arg, &dest, allow_null))) { \