From: Ilia Alshanetsky Date: Tue, 30 Dec 2008 19:11:21 +0000 (+0000) Subject: MFB: Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL). X-Git-Tag: php-5.4.0alpha1~191^2~4713 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=916c8187ccc9c552943540d8556649f7d3d09e6b;p=php MFB: Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL). --- 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 */