File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,9 @@ PHP_METHOD(DOMNamedNodeMap, item)
142
142
int count ;
143
143
144
144
id = ZEND_THIS ;
145
- if ( zend_parse_parameters ( ZEND_NUM_ARGS (), "l" , & index ) == FAILURE ) {
146
- RETURN_THROWS ();
147
- }
145
+ ZEND_PARSE_PARAMETERS_START ( 1 , 1 )
146
+ Z_PARAM_LONG ( index )
147
+ ZEND_PARSE_PARAMETERS_END ();
148
148
if (index < 0 || ZEND_LONG_INT_OVFL (index )) {
149
149
zend_argument_value_error (1 , "must be between 0 and %d" , INT_MAX );
150
150
RETURN_THROWS ();
Original file line number Diff line number Diff line change @@ -154,9 +154,9 @@ PHP_METHOD(DOMNodeList, item)
154
154
int count = 0 ;
155
155
156
156
id = ZEND_THIS ;
157
- if ( zend_parse_parameters ( ZEND_NUM_ARGS (), "l" , & index ) == FAILURE ) {
158
- RETURN_THROWS ();
159
- }
157
+ ZEND_PARSE_PARAMETERS_START ( 1 , 1 )
158
+ Z_PARAM_LONG ( index )
159
+ ZEND_PARSE_PARAMETERS_END ();
160
160
161
161
if (index >= 0 ) {
162
162
intern = Z_DOMOBJ_P (id );
You can’t perform that action at this time.
0 commit comments