cvs: pecl /pdo pdo_stmt.c
| From: | Marcus Boerger | Date: | Thu, 24 Mar 2005 12:32:07 +0000 |
| Subject: | cvs: pecl /pdo pdo_stmt.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-2893@lists.php.net to get a copy of this message | ||
helly Thu Mar 24 07:32:07 2005 EDT
Modified files:
/pecl/pdo pdo_stmt.c
Log:
- Fix null handling found by thies
http://cvs.php.net/diff.php/pecl/pdo/pdo_stmt.c?r1=1.94&r2=1.95&ty=u
Index: pecl/pdo/pdo_stmt.c
diff -u pecl/pdo/pdo_stmt.c:1.94 pecl/pdo/pdo_stmt.c:1.95
--- pecl/pdo/pdo_stmt.c:1.94 Sun Mar 20 19:29:06 2005
+++ pecl/pdo/pdo_stmt.c Thu Mar 24 07:32:06 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pdo_stmt.c,v 1.94 2005/03/21 00:29:06 helly Exp $ */
+/* $Id: pdo_stmt.c,v 1.95 2005/03/24 12:32:06 helly Exp $ */
/* The PDO Statement Handle Class */
@@ -253,7 +253,7 @@
}
}
- 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);
}