Skip to content

Commit 2540c44

Browse files
committed
Add missing zend_parse_parameters_none()
1 parent f753975 commit 2540c44

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/simplexml/simplexml.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,6 +1660,10 @@ SXE_METHOD(getName)
16601660
xmlNodePtr node;
16611661
int namelen;
16621662

1663+
if (zend_parse_parameters_none() == FAILURE) {
1664+
return;
1665+
}
1666+
16631667
sxe = Z_SXEOBJ_P(ZEND_THIS);
16641668

16651669
GET_NODE(sxe, node);
@@ -1939,6 +1943,10 @@ static int sxe_object_cast(zend_object *readobj, zval *writeobj, int type)
19391943
Returns the string content */
19401944
SXE_METHOD(__toString)
19411945
{
1946+
if (zend_parse_parameters_none() == FAILURE) {
1947+
return;
1948+
}
1949+
19421950
if (sxe_object_cast_ex(Z_OBJ_P(ZEND_THIS), return_value, IS_STRING) != SUCCESS) {
19431951
zval_ptr_dtor(return_value);
19441952
RETURN_EMPTY_STRING();

0 commit comments

Comments
 (0)