[Fwd: PHP and MySQL 4.0.0]

From: Date: Fri, 02 Nov 2001 05:31:26 +0000
Subject: [Fwd: PHP and MySQL 4.0.0]
Groups: php.dev 
Request: Send a blank email to php-dev+get-69512@lists.php.net to get a copy of this message
Timothy Smith wrote: > There is an odd conflict with the USE_OLD_FUNCTIONS change in > MySQL 4.0. PHP wraps almost all of ext/mysql/php_mysql.c in > an #ifdef HAVE_MYSQL_REAL_CONNECT, which is only defined if > USE_OLD_FUNCTIONS is defined (in mysql-4.0's mysql.h). So, you > have to #define USE_OLD_FUNCTIONS in php_mysql.c before you > include <mysql.h>. Also, you have to make sure your mysql is > built with USE_OLD_FUNCTIONS defined. > > I guess PHP needs to clean this up. But, also, why does MySQL > only define HAVE_MYSQL_REAL_CONNECT if USE_OLD_FUNCTIONS is > defined? It seems like that is misleading at best. > > After doing the above, I was able to compile and start up > apache with the php4 module. > > Tim -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

« previous php.dev (#69512) next »