#35694 [Opn->Fbk]: PDO crashes when fetch mode is not valid
ID: 35694
Updated by: tony2001@php.net
Reported By: mrethers at ebcubes dot com
-Status: Open
+Status: Feedback
Bug Type: PDO related
Operating System: Linux/Windows
PHP Version: 5.1.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-12-15 23:03:27] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35694&edit=1
Thread (5 messages)