]> granicus.if.org Git - php/commitdiff
- Fix null handling found by thies
authorMarcus Boerger <helly@php.net>
Thu, 24 Mar 2005 12:32:06 +0000 (12:32 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 24 Mar 2005 12:32:06 +0000 (12:32 +0000)
ext/pdo/pdo_stmt.c

index 1e2c6520e1242b772945d07db33a3cec7da449ce..6ea8fb0cb65f1a2dffa43cf98db8ea85d1f0d084 100755 (executable)
@@ -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);
        }