Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005509 [Quercus] minor always 08-23-13 22:57 08-23-13 22:57
Reporter awebdeveloper View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.0.36
  Product Build
Summary 0005509: PDO::ERRMODE_SILENT not honored
Description When passing the PDO::ERRMODE_SILENT option to a new PDO connection, this is not honored by Quercus. In modules/quercus/src/com/caucho/quercus/lib/db/PDO.java a PHP warning is given regardless of this setting. For example in methods getMysqlConnection and getPgsqlDataSource:

   env.warning(L.l("pdo dsn attribute not supported: {0}={1}", key, value));

The correct behaviour is specified in the PHP manual:
http://php.net/manual/en/pdo.error-handling.php [^]

"PDO::ERRMODE_SILENT

This is the default mode. PDO will simply set the error code for you to inspect using the PDO::errorCode() and PDO::errorInfo() methods on both the statement and database objects; if the error resulted from a call on a statement object, you would invoke the PDOStatement::errorCode() or PDOStatement::errorInfo() method on that object. If the error resulted from a call on the database object, you would invoke those methods on the database object instead."
Steps To Reproduce
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
08-23-13 22:57 awebdeveloper New Issue


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
26 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker