summaryrefslogtreecommitdiff
path: root/ext/simplexml
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-09-25 10:37:36 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-09-25 10:40:45 +0200
commit2540c44dbef09d0d5efe72151de2a4d8ae437677 (patch)
tree23f1012529b62757bcddb2c3a9f5354a389bdd44 /ext/simplexml
parentf753975c7a25912b2e52b68989b563ee629e4b25 (diff)
downloadphp-git-2540c44dbef09d0d5efe72151de2a4d8ae437677.tar.gz
Add missing zend_parse_parameters_none()
Diffstat (limited to 'ext/simplexml')
-rw-r--r--ext/simplexml/simplexml.c8
1 files changed, 8 insertions, 0 deletions
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();