#46964 [NEW]: PDO MySQL requires #define MYSQL_OPT_LOCAL_INFILE

From: Date: Mon, 29 Dec 2008 20:14:42 +0000
Subject: #46964 [NEW]: PDO MySQL requires #define MYSQL_OPT_LOCAL_INFILE
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132391@lists.php.net to get a copy of this message
From: jo at feuersee dot de Operating system: Linux PHP version: 5.2.8 PHP Bug Type: Compile Failure Bug description: PDO MySQL requires #define MYSQL_OPT_LOCAL_INFILE 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 bug report at http://bugs.php.net/?id=46964&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46964&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46964&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46964&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46964&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46964&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46964&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46964&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46964&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46964&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46964&r=support Expected behavior: http://bugs.php.net/fix.php?id=46964&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46964&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46964&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46964&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46964&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46964&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46964&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46964&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46964&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46964&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46964&r=mysqlcfg

« previous php.bugs (#132391) next »