summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2008-12-30 19:11:13 +0000
committerIlia Alshanetsky <iliaa@php.net>2008-12-30 19:11:13 +0000
commitbead44c487dc6cf752ec3b0e1b132bd3130555f2 (patch)
treeb64c063a663887c97ec53498a342b7595e3fb00f /ext
parentaab40960c6769c6231db6c54a811d1363854dd85 (diff)
downloadphp-git-bead44c487dc6cf752ec3b0e1b132bd3130555f2.tar.gz
MFB: Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL).
Diffstat (limited to 'ext')
-rwxr-xr-xext/pdo_mysql/mysql_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c
index 68cea255df..551c090eef 100755
--- a/ext/pdo_mysql/mysql_driver.c
+++ b/ext/pdo_mysql/mysql_driver.c
@@ -657,12 +657,12 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
{
local_infile = 0;
}
-
+#ifdef MYSQL_OPT_LOCAL_INFILE
if (mysql_options(H->server, MYSQL_OPT_LOCAL_INFILE, (const char *)&local_infile)) {
pdo_mysql_error(dbh);
goto cleanup;
}
-
+#endif
#ifdef MYSQL_OPT_RECONNECT
/* since 5.0.3, the default for this option is 0 if not specified.
* we want the old behaviour */