iliaa Sun Feb 24 16:09:06 2008 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/pdo pdo_stmt.c /php-src NEWS Log: MFB: Fixed bug #44200 (A crash in PDO when no bound targets exists and yet bound parameters are present) http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_stmt.c?r1=1.118.2.38.2.32&r2=1.118.2.38.2.33&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.32 php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.33 --- php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.32 Wed Feb 20 03:12:16 2008 +++ php-src/ext/pdo/pdo_stmt.c Sun Feb 24 16:09:05 2008 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pdo_stmt.c,v 1.118.2.38.2.32 2008/02/20 03:12:16 iliaa Exp $ */ +/* $Id: pdo_stmt.c,v 1.118.2.38.2.33 2008/02/24 16:09:05 iliaa Exp $ */ /* The PDO Statement Handle Class */ @@ -166,6 +166,10 @@ ht = stmt->bound_params; + if (ht && !stmt->bound_param_map) { + return 0; + } + iterate: if (ht) { zend_hash_internal_pointer_reset(ht); http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1094&r2=1.2027.2.547.2.1095&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.1094 php-src/NEWS:1.2027.2.547.2.1095 --- php-src/NEWS:1.2027.2.547.2.1094 Fri Feb 22 17:49:30 2008 +++ php-src/NEWS Sun Feb 24 16:09:05 2008 @@ -12,6 +12,8 @@ - Fixed bug #44216 (strftime segfaults on large negative value). (Derick) +- Fixed bug #44200 (A crash in PDO when no bound targets exists and yet + bound parameters are present). (Ilia) - Fixed bug #44209 (strtotime() doesn't support 64 bit timestamps on 64 bit platforms). (Derick) - Fixed bug #44197 (socket array keys lost on socket_select). (Felipe)
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php