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/shmop | |
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/shmop')
-rw-r--r-- | ext/shmop/shmop.c | 12 |
1 files changed, 6 insertions, 6 deletions
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) { |