Edit report at https://bugs.php.net/bug.php?id=54158&edit=1
ID: 54158 Comment by: chris dot de dot kok at gmail dot com Reported by: tamas at ideaweb dot hu Summary: MYSQLND + PDO MySQL requires #define MYSQL_OPT_LOCAL_INFILE Status: Closed Type: Bug Package: PDO related Operating System: Linux PHP Version: 5.3.5 Assigned To: mysql Block user comment: N Private report: N New Comment: I still seem to have this problem on: PHP 5.4.17-1~precise+1 Ubuntu 12.04 Previous Comments: ------------------------------------------------------------------------ [2012-01-15 03:20:00] denis_truffaut at hotmail dot com ext/pdo_mysql/mysql_driver.c, line 635 : if (mysql_options(H->sergedit ver, MYSQL_OPT_LOCAL_INFILE, (const char *)&local_infile)) { Should be local_infile = 1; if (mysql_options(H->sergedit ver, MYSQL_OPT_LOCAL_INFILE, (const char *)&local_infile)) { You can achieve this dirty and quickly in doing : sudo sed -ie 's/if (mysql_options(H->server, MYSQL_OPT_LOCAL_INFILE/local_infile = 1;if (mysql_options(H->server, MYSQL_OPT_LOCAL_INFILE/g' ext/pdo_mysql/mysql_driver.c ------------------------------------------------------------------------ [2012-01-15 00:31:54] denis_truffaut at hotmail dot com I just compiled PHP 5.4 RC5, on a Debian 6... and the bug is still there :( ------------------------------------------------------------------------ [2011-10-20 12:57:11] denis_truffaut at hotmail dot com Some bug fix is planned for PHP 5.4 : http://php.net/releases/NEWS_5_4_0_beta1.txt - PDO MySQL driver: . Fixed bug #54158 (MYSQLND+PDO MySQL requires #define MYSQL_OPT_LOCAL_INFILE) (Andrey) ------------------------------------------------------------------------ [2011-10-18 16:35:31] richardpq at gmail dot com I don't get it, after 5.3.6 release was working? because I have 5.3.8 and it is no working https://bugs.php.net/bug.php?id=55737 ------------------------------------------------------------------------ [2011-09-09 07:03:01] and...@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=54158 -- Edit this bug report at https://bugs.php.net/bug.php?id=54158&edit=1