File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -590,9 +590,9 @@ PHP_METHOD(SplHeap, insert)
590
590
zval * value ;
591
591
spl_heap_object * intern ;
592
592
593
- if ( zend_parse_parameters ( ZEND_NUM_ARGS (), "z" , & value ) == FAILURE ) {
594
- RETURN_THROWS ( );
595
- }
593
+ ZEND_PARSE_PARAMETERS_START ( 1 , 1 )
594
+ Z_PARAM_ZVAL ( value );
595
+ ZEND_PARSE_PARAMETERS_END ();
596
596
597
597
intern = Z_SPLHEAP_P (ZEND_THIS );
598
598
@@ -638,9 +638,10 @@ PHP_METHOD(SplPriorityQueue, insert)
638
638
spl_heap_object * intern ;
639
639
spl_pqueue_elem elem ;
640
640
641
- if (zend_parse_parameters (ZEND_NUM_ARGS (), "zz" , & data , & priority ) == FAILURE ) {
642
- RETURN_THROWS ();
643
- }
641
+ ZEND_PARSE_PARAMETERS_START (2 , 2 )
642
+ Z_PARAM_ZVAL (data );
643
+ Z_PARAM_ZVAL (priority );
644
+ ZEND_PARSE_PARAMETERS_END ();
644
645
645
646
intern = Z_SPLHEAP_P (ZEND_THIS );
646
647
You can’t perform that action at this time.
0 commit comments