Patch ZEND_ARG_ARRAY_INFO for PDO related Bug #52003
Patch version 2010-06-06 04:13 UTC
Return to Bug #52003 |
Download this patch
Patch Revisions:
Developer: pierrick@php.net
Index: ext/pdo/pdo_dbh.c
===================================================================
--- ext/pdo/pdo_dbh.c (revision 300209)
+++ ext/pdo/pdo_dbh.c (working copy)
@@ -1206,12 +1206,12 @@
ZEND_ARG_INFO(0, dsn)
ZEND_ARG_INFO(0, username)
ZEND_ARG_INFO(0, passwd)
- ZEND_ARG_INFO(0, options) /* array */
+ ZEND_ARG_ARRAY_INFO(0, options, 1) /* array */
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_pdo_prepare, 0, 0, 1)
ZEND_ARG_INFO(0, statement)
- ZEND_ARG_INFO(0, options) /* array */
+ ZEND_ARG_ARRAY_INFO(0, options, 1) /* array */
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO(arginfo_pdo_setattribute, 0)
Index: ext/pdo/pdo_stmt.c
===================================================================
--- ext/pdo/pdo_stmt.c (revision 300209)
+++ ext/pdo/pdo_stmt.c (working copy)
@@ -39,7 +39,7 @@
/* {{{ arginfo */
ZEND_BEGIN_ARG_INFO_EX(arginfo_pdostatement_execute, 0, 0, 0)
- ZEND_ARG_INFO(0, bound_input_params) /* array */
+ ZEND_ARG_ARRAY_INFO(0, bound_input_params, 1) /* array */
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_pdostatement_fetch, 0, 0, 0)
@@ -50,7 +50,7 @@
ZEND_BEGIN_ARG_INFO_EX(arginfo_pdostatement_fetchobject, 0, 0, 0)
ZEND_ARG_INFO(0, class_name)
- ZEND_ARG_INFO(0, ctor_args) /* array */
+ ZEND_ARG_ARRAY_INFO(0, ctor_args, 1) /* array */
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_pdostatement_fetchcolumn, 0, 0, 0)
@@ -60,7 +60,7 @@
ZEND_BEGIN_ARG_INFO_EX(arginfo_pdostatement_fetchall, 0, 0, 0)
ZEND_ARG_INFO(0, how)
ZEND_ARG_INFO(0, class_name)
- ZEND_ARG_INFO(0, ctor_args) /* array */
+ ZEND_ARG_ARRAY_INFO(0, ctor_args, 1) /* array */
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_pdostatement_bindvalue, 0, 0, 2)
|