|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35694 PDO crashes when fetch mode is not valid
Submitted: 2005-12-15 23:03 UTC Modified: 2005-12-15 23:35 UTC
From: mrethers at ebcubes dot com Assigned:
Status: Closed Package: PDO related
PHP Version: 5.1.1 OS: Linux/Windows
Private report: No CVE-ID: None
 [2005-12-15 23:03 UTC] mrethers at ebcubes dot com
The error message asks to report the bug so here it is ...

Reproduce code:

Expected result:
I would expect a more helpfull message than Numeric value out of range, maybe cast an exception or something, with a unvalid fetch mode message

Actual result:
SQLSTATE[22003]: Numeric value out of range: unhandled mode; this is a PDO bug, please report it


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-15 23:06 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-12-15 23:18 UTC] mrethers at ebcubes dot com
No problem, it doesn't really bother, it's just a cosmetic change ...

Are the snapshot stable for a production environment ?
 [2005-12-15 23:29 UTC]
Snapshots are snapshots. 
You can use whatever you like in production if you know what you're doing.
IIRC I've fixed something similar after 5.1.1 release, please try the snapshot just to confirm it's fixed.
 [2005-12-15 23:35 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 05:01:30 2024 UTC