]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 30 Dec 2008 19:11:21 +0000 (19:11 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 30 Dec 2008 19:11:21 +0000 (19:11 +0000)
ext/pdo_mysql/mysql_driver.c

index 68cea255dff08b65dc2ff242f943d5a65e9f00e8..551c090eefae5801cebd66b2d9d9660fc030f98f 100755 (executable)
@@ -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 */