]> granicus.if.org Git - php/commitdiff
- MFH: Fixed bug #46157 (PDOStatement::fetchObject prototype error)
authorFelipe Pena <felipe@php.net>
Tue, 23 Sep 2008 23:10:01 +0000 (23:10 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 23 Sep 2008 23:10:01 +0000 (23:10 +0000)
NEWS
ext/pdo/pdo_stmt.c

diff --git a/NEWS b/NEWS
index 088ab3502c1b4a3e6a8cce8a63b6566a1231a7be..68681f8f11feb2e9d0f1f1e0abe85be5e9890ebf 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,7 @@ PHP                                                                        NEWS
   (Scott)
 - Fixed a crash on invalid method in ReflectionParameter constructor.
   (Christian Seiler)
+- Fixed bug #46157 (PDOStatement::fetchObject prototype error). (Felipe)
 - Fixed bug #46147 (after stream seek, appending stream filter reads incorrect data).
   (Greg)
 - Fixed bug #46088 (RegexIterator::accept - segfault). (Felipe)
index 940fe845672f1c0bdee6cfea12da8509908d0450..0bd4298aab5b014a89c5aefc01c16a97beb78e92 100755 (executable)
@@ -46,7 +46,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_pdostatement_fetch, 0, 0, 0)
        ZEND_ARG_INFO(0, orientation)
        ZEND_ARG_INFO(0, offset)
 ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_pdostatement_fetchobject, 0, 0, 1)
+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_END_ARG_INFO()
@@ -1365,7 +1365,7 @@ static PHP_METHOD(PDOStatement, fetch)
 }
 /* }}} */
 
-/* {{{ proto mixed PDOStatement::fetchObject(string class_name [, NULL|array ctor_args])
+/* {{{ proto mixed PDOStatement::fetchObject([string class_name [, NULL|array ctor_args]])
    Fetches the next row and returns it as an object. */
 static PHP_METHOD(PDOStatement, fetchObject)
 {