From 345703724c633fb8c1b34e1299bf3375f000c398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Tue, 31 Dec 2019 11:27:02 +0100 Subject: Use RETURN_THROWS() during ZPP in most of the extensions Except for some bigger ones: reflection, sodium, spl --- ext/shmop/shmop.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ext/shmop') diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c index 4f47372f31..ff33683a28 100644 --- a/ext/shmop/shmop.c +++ b/ext/shmop/shmop.c @@ -121,7 +121,7 @@ PHP_FUNCTION(shmop_open) size_t flags_len; if (zend_parse_parameters(ZEND_NUM_ARGS(), "lsll", &key, &flags, &flags_len, &mode, &size) == FAILURE) { - return; + RETURN_THROWS(); } if (flags_len != 1) { @@ -203,7 +203,7 @@ PHP_FUNCTION(shmop_read) zend_string *return_string; if (zend_parse_parameters(ZEND_NUM_ARGS(), "rll", &shmid, &start, &count) == FAILURE) { - return; + RETURN_THROWS(); } if ((shmop = (struct php_shmop *)zend_fetch_resource(Z_RES_P(shmid), "shmop", shm_type)) == NULL) { @@ -237,7 +237,7 @@ PHP_FUNCTION(shmop_close) struct php_shmop *shmop; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &shmid) == FAILURE) { - return; + RETURN_THROWS(); } @@ -257,7 +257,7 @@ PHP_FUNCTION(shmop_size) struct php_shmop *shmop; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &shmid) == FAILURE) { - return; + RETURN_THROWS(); } if ((shmop = (struct php_shmop *)zend_fetch_resource(Z_RES_P(shmid), "shmop", shm_type)) == NULL) { @@ -279,7 +279,7 @@ PHP_FUNCTION(shmop_write) zval *shmid; if (zend_parse_parameters(ZEND_NUM_ARGS(), "rSl", &shmid, &data, &offset) == FAILURE) { - return; + RETURN_THROWS(); } if ((shmop = (struct php_shmop *)zend_fetch_resource(Z_RES_P(shmid), "shmop", shm_type)) == NULL) { @@ -311,7 +311,7 @@ PHP_FUNCTION(shmop_delete) struct php_shmop *shmop; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &shmid) == FAILURE) { - return; + RETURN_THROWS(); } if ((shmop = (struct php_shmop *)zend_fetch_resource(Z_RES_P(shmid), "shmop", shm_type)) == NULL) { -- cgit v1.2.1