From: Operating system: PHP version: 5.3.6 Package: PDO related Bug Type: Bug Bug description:getColumnMeta() throws warning in silent mode
Description: ------------ PDO::ERRMODE_SILENT is not respected by PDOStatement::getColumnMeta() Test script: --------------- $pdo = new PDO('sqlite2:demo.db'); // SQLite does not support getColumnMeta $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT); $result = $pdo->query('SELECT * FROM users'); $result->getColumnMeta(1); Expected result: ---------------- no warning Actual result: -------------- Warning: PDOStatement::getColumnMeta() [pdostatement.getcolumnmeta]: SQLSTATE[IM001]: Driver does not support this function: driver doesn't support meta data -- Edit bug report at http://bugs.php.net/bug.php?id=54695&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54695&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54695&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54695&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54695&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54695&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54695&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54695&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54695&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54695&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54695&r=support Expected behavior: http://bugs.php.net/fix.php?id=54695&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54695&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54695&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54695&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54695&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54695&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54695&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54695&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54695&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54695&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54695&r=mysqlcfg