summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/mysql_driver.c
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2015-01-05 09:25:48 +0100
committerMatteo Beccati <mbeccati@php.net>2015-01-05 09:25:48 +0100
commit7d2f8525d8ec1612ad3999076e291e734fcb0568 (patch)
tree52d1306d9f493dac70133723396d8cf2b7778ab7 /ext/pdo_mysql/mysql_driver.c
parent184b6d9e731e6a37abaa1ee07caa6d7f699caa10 (diff)
parent3e4b91ec7f1278eec16ebdde579b10dc4893f500 (diff)
downloadphp-git-7d2f8525d8ec1612ad3999076e291e734fcb0568.tar.gz
Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific attribute names
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
-rw-r--r--ext/pdo_mysql/mysql_driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c
index b331ce23dd..3947ef061b 100644
--- a/ext/pdo_mysql/mysql_driver.c
+++ b/ext/pdo_mysql/mysql_driver.c
@@ -458,6 +458,7 @@ static int pdo_mysql_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value
ZVAL_LONG(return_value, H->buffered);
break;
+ case PDO_ATTR_EMULATE_PREPARES:
case PDO_MYSQL_ATTR_DIRECT_QUERY:
ZVAL_LONG(return_value, H->emulate_prepare);
break;