php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #40161 Syntax Error in PDO->prepare example 1
Submitted: 2007-01-18 15:18 UTC Modified: 2007-01-18 15:30 UTC
From: peter dot maxwell at yahoo dot co dot uk Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2007-01-18 15:18 UTC] peter dot maxwell at yahoo dot co dot uk
Description:
------------
Example 1 in http://uk.php.net/manual/en/function.pdo-prepare.php.

Incorrect syntax in the given example; the array of PDO attributes should be specified as array( PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY ), not as written using a comma.

The syntax in the example will not work for users who change from the default PDO::CURSOR_FWDONLY to PDO::CURSOR_SCROLL.






Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-18 15:30 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=6520c3631a94a9915f7e93a2afd3caf88ab275c8
Log: fix bug #40161: error in the example 1
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Apr 02 12:00:02 2026 UTC