Re: [PATCH]: Fix for endless loop in PDOStatement::debugDumpParams()
| From: | Jonah H. Harris | Date: | Mon, 03 Nov 2008 19:44:13 +0000 |
| Subject: | Re: [PATCH]: Fix for endless loop in PDOStatement::debugDumpParams() | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41630@lists.php.net to get a copy of this message | ||
On Mon, Nov 3, 2008 at 1:54 PM, Scott MacVicar <scott@macvicar.net> wrote:
> Your patch was stripped, can you attach against with a .txt extension.
Attached.
--
Jonah H. Harris, Senior DBA
myYearbook.com
diff -cr php5/ext/pdo/pdo_stmt.c php5-pdofix/ext/pdo/pdo_stmt.c *** php5/ext/pdo/pdo_stmt.c Mon Nov 3 10:33:22 2008 --- php5-pdofix/ext/pdo/pdo_stmt.c Mon Nov 3 13:09:02 2008 *************** *** 2208,2213 **** --- 2208,2214 ---- param->is_param, param->param_type); + zend_hash_move_forward_ex(stmt->bound_params, &pos); } }
diff -cr php5/ext/pdo/pdo_stmt.c php5-pdofix/ext/pdo/pdo_stmt.c *** php5/ext/pdo/pdo_stmt.c Mon Nov 3 10:33:22 2008 --- php5-pdofix/ext/pdo/pdo_stmt.c Mon Nov 3 13:09:02 2008 *************** *** 2208,2213 **** --- 2208,2214 ---- param->is_param, param->param_type); + zend_hash_move_forward_ex(stmt->bound_params, &pos); } }