mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Removed or simplified incorrect SEPARATE_*() macros usage.
This commit is contained in:
parent
617bef558b
commit
560e4fa393
16 changed files with 13 additions and 39 deletions
|
@ -376,10 +376,10 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *
|
|||
/* We need to manually convert to a pg native boolean value */
|
||||
if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_BOOL &&
|
||||
((param->param_type & PDO_PARAM_INPUT_OUTPUT) != PDO_PARAM_INPUT_OUTPUT)) {
|
||||
SEPARATE_ZVAL(¶m->parameter);
|
||||
const char *s = zend_is_true(¶m->parameter) ? "t" : "f";
|
||||
param->param_type = PDO_PARAM_STR;
|
||||
convert_to_boolean(¶m->parameter);
|
||||
ZVAL_STRINGL(¶m->parameter, Z_TYPE_P(¶m->parameter) == IS_TRUE ? "t" : "f", 1);
|
||||
zval_ptr_dtor(¶m->parameter);
|
||||
ZVAL_STRINGL(¶m->parameter, s, 1);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue