iliaa Tue Nov 7 17:57:18 2006 UTC Added files: (Branch: PHP_5_2) /php-src/ext/pdo/tests bug_39398.phpt
Modified files: /php-src/ext/pdo pdo_stmt.c /php-src NEWS Log: Fixed bug #39398 (Booleans are not automatically translated to integers). http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_stmt.c?r1=1.118.2.38.2.8&r2=1.118.2.38.2.9&diff_format=u Index: php-src/ext/pdo/pdo_stmt.c diff -u php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.8 php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.9 --- php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.8 Wed Aug 23 19:15:57 2006 +++ php-src/ext/pdo/pdo_stmt.c Tue Nov 7 17:57:17 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pdo_stmt.c,v 1.118.2.38.2.8 2006/08/23 19:15:57 tony2001 Exp $ */ +/* $Id: pdo_stmt.c,v 1.118.2.38.2.9 2006/11/07 17:57:17 iliaa Exp $ */ /* The PDO Statement Handle Class */ @@ -278,6 +278,10 @@ 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); + } else if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_INT && Z_TYPE_P(param->parameter) == IS_BOOL) { + convert_to_long(param->parameter); + } else if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_BOOL && Z_TYPE_P(param->parameter) == IS_LONG) { + convert_to_boolean(param->parameter); } param->stmt = stmt; http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.335&r2=1.2027.2.547.2.336&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.335 php-src/NEWS:1.2027.2.547.2.336 --- php-src/NEWS:1.2027.2.547.2.335 Tue Nov 7 15:19:11 2006 +++ php-src/NEWS Tue Nov 7 17:57:17 2006 @@ -15,6 +15,8 @@ - Added optimization for imageline with horizontal and vertial lines (Pierre) - Fixed bug #39414 (Syntax error while compiling with Sun Workshop Complier). (Johannes) +- Fixed bug #39398 (Booleans are not automatically translated to integers). + (Ilia) - Fixed bug #39366 (imagerotate does not use alpha with angle > 45°) (Pierre) - Fixed bug #39362 (Added an option to imap_open/imap_reopen to control the number of connection retries). (Ilia) http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/tests/bug_39398.phpt?view=markup&rev=1.1 Index: php-src/ext/pdo/tests/bug_39398.phpt +++ php-src/ext/pdo/tests/bug_39398.phpt -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php