From 6c4c81d7f5790de40252709342d896ce3f50cf0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 8 Jan 2019 19:06:10 +0100 Subject: [PATCH 1/1] Reset allow_null for args --- bbcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbcode.c b/bbcode.c index 7916d1c..5810aae 100644 --- a/bbcode.c +++ b/bbcode.c @@ -208,8 +208,8 @@ static zend_object *bbcode_create(zend_class_entry *ce TSRMLS_DC) { // ZEND_BEGIN_ARG_INFO_EX(name, _unused, return_reference, required_num_args) ZEND_BEGIN_ARG_INFO_EX(bbcode_construct_arginfo, 0, 0, 1) // ZEND_ARG_ARRAY_INFO(pass_by_ref, name, allow_null) - ZEND_ARG_ARRAY_INFO(0, tag, 0) - ZEND_ARG_ARRAY_INFO(0, smiley, 0) + ZEND_ARG_ARRAY_INFO(0, tag, 1) + ZEND_ARG_ARRAY_INFO(0, smiley, 1) // ZEND_ARG_INFO(pass_by_ref, name) ZEND_ARG_INFO(0, flag) ZEND_END_ARG_INFO() -- 2.41.1