Drivers will used a 0 length as a hint that the parameter is an in-out or out
parameter.
if (param->param_type == PDO_PARAM_STR && param->max_value_len <= 0) {
convert_to_string(param->parameter);
- /* XXX: need to provide a way to set this to something sane, or
- * investigate a better way to set the length of output parameters in
- * the drivers themselves */
- param->max_value_len = Z_STRLEN_P(param->parameter);
}
param->stmt = stmt;