summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_api.c
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/mysqli/mysqli_api.c
parent1658b5babc34c46b3b78b852e7a5f134845ace7c (diff)
downloadphp-git-7b4a4d2ace0015e6e7cc34f309edda91a8097d71.tar.gz
Use RETURN_THROWS() after try_convert_to_string()
Diffstat (limited to 'ext/mysqli/mysqli_api.c')
-rw-r--r--ext/mysqli/mysqli_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
index 05c1a729c3..4a5e7c992a 100644
--- a/ext/mysqli/mysqli_api.c
+++ b/ext/mysqli/mysqli_api.c
@@ -898,7 +898,7 @@ PHP_FUNCTION(mysqli_stmt_execute)
switch (stmt->stmt->params[i].buffer_type) {
case MYSQL_TYPE_VAR_STRING:
if (!try_convert_to_string(param)) {
- return;
+ RETURN_THROWS();
}
stmt->stmt->params[i].buffer = Z_STRVAL_P(param);
@@ -1791,7 +1791,7 @@ PHP_FUNCTION(mysqli_options)
switch (expected_type) {
case IS_STRING:
if (!try_convert_to_string(mysql_value)) {
- return;
+ RETURN_THROWS();
}
break;
case IS_LONG: