From: Marcus Boerger Date: Thu, 24 Mar 2005 12:32:06 +0000 (+0000) Subject: - Fix null handling found by thies X-Git-Tag: php-5.0.1b1~691 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d27be112338117d3172b39558329d1d344101be9;p=php - Fix null handling found by thies --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 1e2c6520e1..6ea8fb0cb6 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -253,7 +253,7 @@ static int really_register_bound_param(struct pdo_bound_param_data *param, pdo_s } } - if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_STR && param->max_value_len <= 0) { + if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_STR && param->max_value_len <= 0 && ! ZVAL_IS_NULL(param->parameter)) { convert_to_string(param->parameter); }