From: Wez Furlong Date: Wed, 19 Jan 2005 05:25:40 +0000 (+0000) Subject: don't propogate an unspecified length to the driver. X-Git-Tag: RELEASE_0_2~244 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a39d50c95f26c634ce6e253a7ede435687dd7f1e;p=php don't propogate an unspecified length to the driver. Drivers will used a 0 length as a hint that the parameter is an in-out or out parameter. --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index aafe14818c..2e3aa6e256 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -216,10 +216,6 @@ static int really_register_bound_param(struct pdo_bound_param_data *param, pdo_s 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;