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

index b1f070b189a2712ae99b50a6e9c10220fcbe18b2..80b4ed970aa27190bfbfd83359b9ec53c54fe583 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()
@@ -1381,7 +1381,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)
 {