diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2019-12-30 17:35:46 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2019-12-30 17:38:10 +0100 |
commit | e1b57310b1ec15b24e5ead8b63e58f74a0dbc988 (patch) | |
tree | 48d1e75ba2b0fc2f587b4e512cfd2fe3aeec9927 /sapi/phpdbg/phpdbg.c | |
parent | 31cf9a7ea99e69ed2838ab0765a1aefd6609ef7b (diff) | |
download | php-git-e1b57310b1ec15b24e5ead8b63e58f74a0dbc988.tar.gz |
Use RETURN_THROWS() during ZPP in main, sapi, win32, and Zend
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index cb0732ae5c..c185fe75f6 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -296,7 +296,7 @@ static PHP_FUNCTION(phpdbg_exec) zend_string *exec; if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &exec) == FAILURE) { - return; + RETURN_THROWS(); } { @@ -336,7 +336,7 @@ static PHP_FUNCTION(phpdbg_break_next) zend_execute_data *ex; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } ex = EG(current_execute_data); @@ -359,7 +359,7 @@ static PHP_FUNCTION(phpdbg_break_file) zend_long line; if (zend_parse_parameters(ZEND_NUM_ARGS(), "sl", &file, &flen, &line) == FAILURE) { - return; + RETURN_THROWS(); } phpdbg_set_breakpoint_file(file, 0, line); @@ -372,7 +372,7 @@ static PHP_FUNCTION(phpdbg_break_method) size_t clen, mlen; if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &class, &clen, &method, &mlen) == FAILURE) { - return; + RETURN_THROWS(); } phpdbg_set_breakpoint_method(class, method); @@ -385,7 +385,7 @@ static PHP_FUNCTION(phpdbg_break_function) size_t function_len; if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &function, &function_len) == FAILURE) { - return; + RETURN_THROWS(); } phpdbg_set_breakpoint_symbol(function, function_len); @@ -396,7 +396,7 @@ static PHP_FUNCTION(phpdbg_break_function) static PHP_FUNCTION(phpdbg_clear) { if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } zend_hash_clean(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE]); @@ -418,7 +418,7 @@ static PHP_FUNCTION(phpdbg_color) size_t color_len; if (zend_parse_parameters(ZEND_NUM_ARGS(), "ls", &element, &color, &color_len) == FAILURE) { - return; + RETURN_THROWS(); } switch (element) { @@ -440,7 +440,7 @@ static PHP_FUNCTION(phpdbg_prompt) size_t prompt_len = 0; if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &prompt, &prompt_len) == FAILURE) { - return; + RETURN_THROWS(); } phpdbg_set_prompt(prompt); @@ -452,7 +452,7 @@ static PHP_FUNCTION(phpdbg_start_oplog) phpdbg_oplog_list *prev; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } prev = PHPDBG_G(oplog_list); @@ -539,7 +539,7 @@ static PHP_FUNCTION(phpdbg_get_executable) HashTable files_tmp; if (zend_parse_parameters(ZEND_NUM_ARGS(), "|H", &options) == FAILURE) { - return; + RETURN_THROWS(); } if (options && (option_buffer = zend_hash_str_find(options, ZEND_STRL("functions")))) { @@ -633,7 +633,7 @@ static PHP_FUNCTION(phpdbg_end_oplog) zend_bool by_opcode = 0; if (zend_parse_parameters(ZEND_NUM_ARGS(), "|H", &options) == FAILURE) { - return; + RETURN_THROWS(); } if (!PHPDBG_G(oplog_list)) { |