#46964 [Opn->Csd]: PDO MySQL requires #define MYSQL_OPT_LOCAL_INFILE
| From: | iliaa@php.net | Date: | Tue, 30 Dec 2008 19:11:35 +0000 |
| Subject: | #46964 [Opn->Csd]: PDO MySQL requires #define MYSQL_OPT_LOCAL_INFILE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132420@lists.php.net to get a copy of this message | ||
ID: 46964
Updated by: iliaa@php.net
Reported By: jo at feuersee dot de
-Status: Open
+Status: Closed
Bug Type: Compile Failure
Operating System: Linux
PHP Version: 5.2.8
New Comment:
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-12-29 20:14:42] jo at feuersee dot de
Description:
------------
Compiling PDO MySQL with ancient MySQL fails because the code
assumes that MYSQL_OPT_LOCAL_INFILE has been defined. This isn't the
case with MySQL 3.* and IIRC 4.0 and some early 4.1 versions.
AFAICS it's pretty easy to fix this: tell the compiler to test via
#ifdef
In file etc/pdo_mysql/mysql_driver.c ad line 500:
#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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46964&edit=1