mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use RETURN_THROWS() after try_convert_to_string()
This commit is contained in:
parent
1658b5babc
commit
7b4a4d2ace
17 changed files with 30 additions and 30 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue