summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-03-24 12:32:06 (GMT)
committerMarcus Boerger <helly@php.net>2005-03-24 12:32:06 (GMT)
commitd27be112338117d3172b39558329d1d344101be9 (patch)
tree842ccd076cdfa4d60667f6c56ff7b416768a4ee8 /ext
parent2906d6570cd816f2edfd949e280c162f2f1e033f (diff)
downloadphp-d27be112338117d3172b39558329d1d344101be9.tar.gz
- Fix null handling found by thies
Diffstat (limited to 'ext')
-rwxr-xr-xext/pdo/pdo_stmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index 1e2c652..6ea8fb0 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);
}