mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Make convert_to_*_ex simple aliases of convert_to_*
Historically, the _ex variants separated the zval first, if a conversion was necessary. This distinction no longer makes sense since PHP 7. The only difference that was still left is that _ex checked whether the type is the same first, but the usage of these macros did not actually distinguish on whether such an inlined check is valuable or not in a given context. Also drop the unused convert_to_explicit_type macros.
This commit is contained in:
parent
1b2aba285d
commit
422d1665a2
26 changed files with 95 additions and 145 deletions
|
@ -380,7 +380,7 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *
|
|||
S->param_lengths[param->paramno] = 1;
|
||||
S->param_formats[param->paramno] = 0;
|
||||
} else {
|
||||
convert_to_string_ex(parameter);
|
||||
convert_to_string(parameter);
|
||||
S->param_values[param->paramno] = Z_STRVAL_P(parameter);
|
||||
S->param_lengths[param->paramno] = Z_STRLEN_P(parameter);
|
||||
S->param_formats[param->paramno] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue