[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-cvs
Subject:    [PHP-CVS] =?utf-8?q?svn:_/php/php-src/_branches/PHP=5F5=5F3/ext/pdo=5Ffirebird/firebird=5Fstatement.
From:       Popa_Adrian_Marius <mariuz () php ! net>
Date:       2011-12-28 19:58:37
Message-ID: svn-mariuz-1325102317-321487-265805219 () svn ! php ! net
[Download RAW message or body]

mariuz                                   Wed, 28 Dec 2011 19:58:37 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=321487

Log:
Fixed  PDO_Firebird: bug 53280 segfaults if query column count is less than param \
count

Bug: https://bugs.php.net/53280 (Assigned) PDO_Firebird segfaults query column count \
less than param count  
Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/pdo_firebird/firebird_statement.c
    U   php/php-src/branches/PHP_5_4/ext/pdo_firebird/firebird_statement.c
    U   php/php-src/trunk/ext/pdo_firebird/firebird_statement.c

Modified: php/php-src/branches/PHP_5_3/ext/pdo_firebird/firebird_statement.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/pdo_firebird/firebird_statement.c	2011-12-28 \
                19:09:41 UTC (rev 321486)
+++ php/php-src/branches/PHP_5_3/ext/pdo_firebird/firebird_statement.c	2011-12-28 \
19:58:37 UTC (rev 321487) @@ -585,6 +585,9 @@
                         if (param->paramno == -1) {
                             return 0;
                         }
+			if (param->is_param) {
+				break;
+			}
 			value = NULL;
 			value_len = 0;
 			caller_frees = 0;

Modified: php/php-src/branches/PHP_5_4/ext/pdo_firebird/firebird_statement.c
===================================================================
--- php/php-src/branches/PHP_5_4/ext/pdo_firebird/firebird_statement.c	2011-12-28 \
                19:09:41 UTC (rev 321486)
+++ php/php-src/branches/PHP_5_4/ext/pdo_firebird/firebird_statement.c	2011-12-28 \
19:58:37 UTC (rev 321487) @@ -585,6 +585,9 @@
                         if (param->paramno == -1) {
                             return 0;
                         }
+			if (param->is_param) {
+				break;
+			}
 			value = NULL;
 			value_len = 0;
 			caller_frees = 0;

Modified: php/php-src/trunk/ext/pdo_firebird/firebird_statement.c
===================================================================
--- php/php-src/trunk/ext/pdo_firebird/firebird_statement.c	2011-12-28 19:09:41 UTC \
                (rev 321486)
+++ php/php-src/trunk/ext/pdo_firebird/firebird_statement.c	2011-12-28 19:58:37 UTC \
(rev 321487) @@ -585,6 +585,9 @@
                         if (param->paramno == -1) {
                             return 0;
                         }
+			if (param->is_param) {
+				break;
+			}
 			value = NULL;
 			value_len = 0;
 			caller_frees = 0;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic