ID: 46964 Updated by: [email protected] 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
