Bug #74144 [NEW]: Unexpected output of getAttribute

From: Date: Wed, 22 Feb 2017 00:57:55 +0000
Subject: Bug #74144 [NEW]: Unexpected output of getAttribute
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207499@lists.php.net to get a copy of this message
From: wriver4 at gmail dot com Operating system: irrevelent PHP version: Irrelevant Package: PDO related Bug Type: Bug Bug description:Unexpected output of getAttribute Description: ------------ So this was an accident in typing that produced an informative but unexpected result. Test script: --------------- $db = new PDO("mysql:host=localhost;dbname=classicmodels;port=3306;charset=utf8",$user, $password); $db->setAttribute(PDO::ATTR_PERSISTENT, TRUE); $db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, TRUE); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, FALSE); $db->setAttribute(PDO :: ATTR_CASE, PDO :: CASE_NATURAL); } echo $db->getAttribute(PDO::PARAM_BOOL).'<br>'; Actual result: -------------- mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $ -- Edit bug report at https://bugs.php.net/bug.php?id=74144&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74144&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74144&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74144&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74144&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74144&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74144&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74144&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74144&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74144&r=support Expected behavior: https://bugs.php.net/fix.php?id=74144&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74144&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74144&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74144&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74144&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74144&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74144&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74144&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74144&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74144&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74144&r=mysqlcfg

« previous php.bugs (#207499) next »