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

From: Date: Tue, 24 Oct 2017 18:02:49 +0000
Subject: Bug #55802 [Opn->Dup]: 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-212289@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: adambaratz@php.net Reported by: cyberspice at cyberspice dot org dot uk Summary: PDO_ATTR_EMULATE_PREPARES not supported for getAttribute() in pdo_mysql -Status: Open +Status: Duplicate Type: Bug Package: PDO MySQL Operating System: Linux PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: This was fixed with #68371. 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 (#212289) next »