From 2540c44dbef09d0d5efe72151de2a4d8ae437677 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 25 Sep 2019 10:37:36 +0200 Subject: Add missing zend_parse_parameters_none() --- ext/simplexml/simplexml.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ext/simplexml') diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index bcf2c2ed0e..1654428fde 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1660,6 +1660,10 @@ SXE_METHOD(getName) xmlNodePtr node; int namelen; + if (zend_parse_parameters_none() == FAILURE) { + return; + } + sxe = Z_SXEOBJ_P(ZEND_THIS); GET_NODE(sxe, node); @@ -1939,6 +1943,10 @@ static int sxe_object_cast(zend_object *readobj, zval *writeobj, int type) Returns the string content */ SXE_METHOD(__toString) { + if (zend_parse_parameters_none() == FAILURE) { + return; + } + if (sxe_object_cast_ex(Z_OBJ_P(ZEND_THIS), return_value, IS_STRING) != SUCCESS) { zval_ptr_dtor(return_value); RETURN_EMPTY_STRING(); -- cgit v1.2.1