PDO crashes when fetch mode is not valid
| 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
Description: ------------ The error message asks to report the bug so here it is ... Reproduce code: --------------- $stmt->setFetchMode(WHATEVER_NOT_PDO_CONSTANT) 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-12-15 23:18 UTC] mrethers at ebcubes dot com
[2005-12-15 23:29 UTC] tony2001@php.net
[2005-12-15 23:35 UTC] iliaa@php.net