php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35838 PDO::fetch() has wrong proto
Submitted: 2005-12-29 12:25 UTC Modified: 2006-01-03 18:22 UTC
From: mfischer@php.net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mfischer@php.net
New email:
PHP Version: OS:

 

 [2005-12-29 12:25 UTC] mfischer@php.net
Description:
------------
Currently the method is documented as:

PDOStatement PDO::query ( string statement )

however it takes an additional parameter (this proto is take from pdo/pdo_dbh.c):

object PDO::query(string sql [, PDOStatement::setFetchMode() args])

so it seems to be

PDOStatement PDO::query ( string statement [, PDOStatement::setFetchMode() args])


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-03 18:21 UTC] vrana@php.net
Proto in source is wrong: zend_parse_parameters(1 TSRMLS_CC, "s", ...).
 [2006-01-03 18:22 UTC] vrana@php.net
So this is not a bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 12:00:02 2025 UTC