File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -114,20 +114,13 @@ zend_result dom_nodelist_length_read(dom_object *obj, zval *retval)
114
114
ZVAL_LONG (retval , php_dom_get_nodelist_length (obj ));
115
115
return SUCCESS ;
116
116
}
117
-
117
+ /* }}} */
118
118
119
119
/* {{{ */
120
120
PHP_METHOD (DOMNodeList , count )
121
121
{
122
- zval * id ;
123
- dom_object * intern ;
124
-
125
- id = ZEND_THIS ;
126
- if (zend_parse_parameters_none () == FAILURE ) {
127
- RETURN_THROWS ();
128
- }
129
-
130
- intern = Z_DOMOBJ_P (id );
122
+ ZEND_PARSE_PARAMETERS_NONE ();
123
+ dom_object * intern = Z_DOMOBJ_P (ZEND_THIS );
131
124
RETURN_LONG (php_dom_get_nodelist_length (intern ));
132
125
}
133
126
/* }}} end dom_nodelist_count */
@@ -243,10 +236,7 @@ PHP_METHOD(DOMNodeList, item)
243
236
244
237
ZEND_METHOD (DOMNodeList , getIterator )
245
238
{
246
- if (zend_parse_parameters_none () == FAILURE ) {
247
- return ;
248
- }
249
-
239
+ ZEND_PARSE_PARAMETERS_NONE ();
250
240
zend_create_internal_iterator_zval (return_value , ZEND_THIS );
251
241
}
252
242
You can’t perform that action at this time.
0 commit comments