|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-30 19:11 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 04:00:02 2025 UTC |
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