#35358 [Opn->Asn]: Incorrect error messages for PDO class constants

From: Date: Thu, 24 Nov 2005 14:00:13 +0000
Subject: #35358 [Opn->Asn]: Incorrect error messages for PDO class constants
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88845@lists.php.net to get a copy of this message
 ID:               35358
 Updated by:       tony2001@php.net
 Reported By:      stochnagara at hotmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         PDO related
 Operating System: irrelevant
 PHP Version:      5CVS-2005-11-23 (snap)
 Assigned To:      helly


Previous Comments:
------------------------------------------------------------------------

[2005-11-24 14:58:42] stochnagara at hotmail dot com

Sorry, the is no chance, unfortunately:(

------------------------------------------------------------------------

[2005-11-23 23:57:45] helly@php.net

Any chgance you can provide a 'cvs diff -u' patch?

------------------------------------------------------------------------

[2005-11-23 23:53:09] stochnagara at hotmail dot com

Description:
------------
I found the following inconstitences in some error string for PDO.

pdo_dbh.c:
line 511, 533, 720, 731, 757: PDO_ATTR_STATEMENT_CLASS should be
replaced with PDO::ATTR_STATEMENT_CLASS
pdo_stmt.c:
lines 1122, 1137 PDO_FETCH_SERIALIZE -> PDO::FETCH_SERIALIZE
lines 1130 : PDO_FETCH_FUNC -> PDO::FETCH_FUNC
lines 1137, 1141 : PDO_FETCH_CLASS -> PDO::FETCH_CLASS
lines 1141 : PDO_FETCH_CLASS_TYPE -> PDO::FETCH_CLASS_TYPE
lines 1369 : PDO_FETCH_COLUMN -> PDO::FETCH_COLUMN

These are not C constants but part of error message strings so :: is
needed.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35358&edit=1


Thread (5 messages)

« previous php.bugs (#88845) next »