mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.1'
This commit is contained in:
commit
70d03423c7
3 changed files with 32 additions and 4 deletions
|
@ -1201,7 +1201,7 @@ PHP_FUNCTION(pg_query_params)
|
|||
} else {
|
||||
zend_string *param_str = zval_try_get_string(tmp);
|
||||
if (!param_str) {
|
||||
_php_pgsql_free_params(params, num_params);
|
||||
_php_pgsql_free_params(params, i);
|
||||
RETURN_THROWS();
|
||||
}
|
||||
params[i] = estrndup(ZSTR_VAL(param_str), ZSTR_LEN(param_str));
|
||||
|
@ -3918,8 +3918,8 @@ PHP_FUNCTION(pg_send_execute)
|
|||
params[i] = NULL;
|
||||
} else {
|
||||
zend_string *tmp_str = zval_try_get_string(tmp);
|
||||
if (UNEXPECTED(!tmp)) {
|
||||
_php_pgsql_free_params(params, num_params);
|
||||
if (UNEXPECTED(!tmp_str)) {
|
||||
_php_pgsql_free_params(params, i);
|
||||
return;
|
||||
}
|
||||
params[i] = estrndup(ZSTR_VAL(tmp_str), ZSTR_LEN(tmp_str));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue