diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2019-12-31 11:27:02 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2019-12-31 11:46:11 +0100 |
commit | 345703724c633fb8c1b34e1299bf3375f000c398 (patch) | |
tree | 18da0e12163e82ce16fbee726df1839439a1edfa /ext/xsl | |
parent | d9ac1ca8de298baf10f7c713c0b37c6ea5d89cf4 (diff) | |
download | php-git-345703724c633fb8c1b34e1299bf3375f000c398.tar.gz |
Use RETURN_THROWS() during ZPP in most of the extensions
Except for some bigger ones: reflection, sodium, spl
Diffstat (limited to 'ext/xsl')
-rw-r--r-- | ext/xsl/xsltprocessor.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/xsl/xsltprocessor.c b/ext/xsl/xsltprocessor.c index 7c023f0fc7..a5d2765606 100644 --- a/ext/xsl/xsltprocessor.c +++ b/ext/xsl/xsltprocessor.c @@ -403,7 +403,7 @@ PHP_FUNCTION(xsl_xsltprocessor_import_stylesheet) id = ZEND_THIS; if (zend_parse_parameters(ZEND_NUM_ARGS(), "o", &docp) == FAILURE) { - return; + RETURN_THROWS(); } nodep = php_libxml_import_node(docp); @@ -630,7 +630,7 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_doc) sheetp = (xsltStylesheetPtr) intern->ptr; if (zend_parse_parameters(ZEND_NUM_ARGS(), "o|S!", &docp, &ret_class) == FAILURE) { - return; + RETURN_THROWS(); } newdocp = php_xsl_apply_stylesheet(id, intern, sheetp, docp); @@ -687,7 +687,7 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_uri) sheetp = (xsltStylesheetPtr) intern->ptr; if (zend_parse_parameters(ZEND_NUM_ARGS(), "op", &docp, &uri, &uri_len) == FAILURE) { - return; + RETURN_THROWS(); } newdocp = php_xsl_apply_stylesheet(id, intern, sheetp, docp); @@ -719,7 +719,7 @@ PHP_FUNCTION(xsl_xsltprocessor_transform_to_xml) sheetp = (xsltStylesheetPtr) intern->ptr; if (zend_parse_parameters(ZEND_NUM_ARGS(), "o", &docp) == FAILURE) { - return; + RETURN_THROWS(); } newdocp = php_xsl_apply_stylesheet(id, intern, sheetp, docp); @@ -800,7 +800,7 @@ PHP_FUNCTION(xsl_xsltprocessor_get_parameter) DOM_GET_THIS(id); if (zend_parse_parameters(ZEND_NUM_ARGS(), "sS", &namespace, &namespace_len, &name) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_XSL_P(id); if ((value = zend_hash_find(intern->parameter, name)) != NULL) { @@ -824,7 +824,7 @@ PHP_FUNCTION(xsl_xsltprocessor_remove_parameter) DOM_GET_THIS(id); if (zend_parse_parameters(ZEND_NUM_ARGS(), "sS", &namespace, &namespace_len, &name) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_XSL_P(id); if (zend_hash_del(intern->parameter, name) == SUCCESS) { @@ -910,7 +910,7 @@ PHP_FUNCTION(xsl_xsltprocessor_set_security_prefs) DOM_GET_THIS(id); if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &securityPrefs) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_XSL_P(id); oldSecurityPrefs = intern->securityPrefs; |