#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:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-12-15 23:18:07] 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:06:02] tony2001@php.net
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
------------------------------------------------------------------------
[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)