Bug #55802 [Asn->Opn]: PDO_ATTR_EMULATE_PREPARES not supported for getAttribute() in pdo_mysql

From: Date: Tue, 24 Oct 2017 08:07:56 +0000
Subject: Bug #55802 [Asn->Opn]: PDO_ATTR_EMULATE_PREPARES not supported for getAttribute() in pdo_mysql
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212223@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55802&edit=1 ID: 55802 Updated by: kalle@php.net Reported by: cyberspice at cyberspice dot org dot uk Summary: PDO_ATTR_EMULATE_PREPARES not supported for getAttribute() in pdo_mysql -Status: Assigned +Status: Open Type: Bug Package: PDO MySQL Operating System: Linux PHP Version: 5.3.8 -Assigned To: mysql +Assigned To: Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-09-27 23:26:27] cyberspice at cyberspice dot org dot uk Description: ------------ I was trying to diagnose another issue and testing with PDO_ATTR_EMULATE_PREPARES enabled and disabled and discovered that PDO::getAttribute() for mysql doesn't support it. Checking the source I see that it is a synonym for PDO_MYSQL_ATTR_DIRECT_QUERY. However both are supported in PDO::setAttribute() but only PDO_MYSQL_ATTR_DIRECT_QUERY is supported in getAttribute(). It always returns false. I attach a patch. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55802&edit=1

« previous php.bugs (#212223) next »