]> granicus.if.org Git - php/commitdiff
Use zend_parse_parameters_none_throw
authorGabriel Caruso <carusogabriel34@gmail.com>
Fri, 16 Feb 2018 03:01:02 +0000 (01:01 -0200)
committerJoe Watkins <krakjoe@php.net>
Sun, 18 Feb 2018 08:36:35 +0000 (09:36 +0100)
ext/dom/documentfragment.c
ext/intl/spoofchecker/spoofchecker_create.c

index 87cb691501899eda60ea48e7b92098f4f95c9727..31f7713c89080046df5c9f915e365d45057ae6db 100644 (file)
@@ -57,7 +57,7 @@ PHP_METHOD(domdocumentfragment, __construct)
        xmlNodePtr nodep = NULL, oldnode = NULL;
        dom_object *intern;
 
-       if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "") == FAILURE) {
+       if (zend_parse_parameters_none_throw() == FAILURE) {
                return;
        }
 
index 34536f84a5cab62a426fc9715ac83dcd61dfa6c5..4342d3d31ee4a49fd5ae82724042f2f1820d54d8 100644 (file)
@@ -34,7 +34,7 @@ PHP_METHOD(Spoofchecker, __construct)
        zend_error_handling error_handling;
        SPOOFCHECKER_METHOD_INIT_VARS;
 
-       if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "") == FAILURE) {
+       if (zend_parse_parameters_none_throw() == FAILURE) {
                return;
        }