summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_persist.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2019-12-30 18:09:40 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2019-12-31 00:21:37 +0100
commit76c45f35f55b50cfb4fc581d3358998b25e5531e (patch)
treeee41aa2f4fc7b4543770fcebcc55f1e8b0b07fcf /ext/com_dotnet/com_persist.c
parent3262c28d5c786f96894ad78045958bff2aa09a2b (diff)
downloadphp-git-76c45f35f55b50cfb4fc581d3358998b25e5531e.tar.gz
Use RETURN_THROWS() during ZPP in bz2, calendar, com_dotnet extensions
Diffstat (limited to 'ext/com_dotnet/com_persist.c')
-rw-r--r--ext/com_dotnet/com_persist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/com_dotnet/com_persist.c b/ext/com_dotnet/com_persist.c
index dc320c966c..9710972a86 100644
--- a/ext/com_dotnet/com_persist.c
+++ b/ext/com_dotnet/com_persist.c
@@ -380,7 +380,7 @@ CPH_METHOD(SaveToFile)
if (helper->ipf) {
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "p!|b",
&filename, &filename_len, &remember)) {
- return;
+ RETURN_THROWS();
}
if (filename) {
@@ -443,7 +443,7 @@ CPH_METHOD(LoadFromFile)
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "p|l",
&filename, &filename_len, &flags)) {
- return;
+ RETURN_THROWS();
}
if (!(fullpath = expand_filepath(filename, NULL))) {
@@ -538,7 +538,7 @@ CPH_METHOD(LoadFromStream)
CPH_FETCH();
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "r", &zstm)) {
- return;
+ RETURN_THROWS();
}
php_stream_from_zval_no_verify(stream, zstm);
@@ -599,7 +599,7 @@ CPH_METHOD(SaveToStream)
CPH_NO_OBJ();
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "r", &zstm)) {
- return;
+ RETURN_THROWS();
}
php_stream_from_zval_no_verify(stream, zstm);
@@ -646,7 +646,7 @@ CPH_METHOD(__construct)
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "|O!",
&zobj, php_com_variant_class_entry)) {
- return;
+ RETURN_THROWS();
}
if (!zobj) {