summaryrefslogtreecommitdiff
path: root/ext/imap
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-01-03 17:04:06 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-01-03 17:04:06 +0100
commit7b4a4d2ace0015e6e7cc34f309edda91a8097d71 (patch)
treef4543ce9ab9d6dfd37c68453de5831796af70b9f /ext/imap
parent1658b5babc34c46b3b78b852e7a5f134845ace7c (diff)
downloadphp-git-7b4a4d2ace0015e6e7cc34f309edda91a8097d71.tar.gz
Use RETURN_THROWS() after try_convert_to_string()
Diffstat (limited to 'ext/imap')
-rw-r--r--ext/imap/php_imap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index ec23bda52b..3c477c69b2 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -1693,7 +1693,7 @@ PHP_FUNCTION(imap_delete)
}
if (!try_convert_to_string(sequence)) {
- return;
+ RETURN_THROWS();
}
mail_setflag_full(imap_le_struct->imap_stream, Z_STRVAL_P(sequence), "\\DELETED", (argc == 3 ? flags : NIL));
@@ -1719,7 +1719,7 @@ PHP_FUNCTION(imap_undelete)
}
if (!try_convert_to_string(sequence)) {
- return;
+ RETURN_THROWS();
}
mail_clearflag_full(imap_le_struct->imap_stream, Z_STRVAL_P(sequence), "\\DELETED", (argc == 3 ? flags : NIL));
@@ -2140,7 +2140,7 @@ PHP_FUNCTION(imap_savebody)
default:
if (!try_convert_to_string(out)) {
- return;
+ RETURN_THROWS();
}
writer = php_stream_open_wrapper(Z_STRVAL_P(out), "wb", REPORT_ERRORS, NULL);
break;