I have committed a fix for all this. Please check it out, especially the thread-safe stuff.
This diff shows why the HAVE_MYSQL_REAL_CONNECT broke things: http://cvs.php.net/diff.php/php4/ext/mysql/php_mysql.c?r1=1.37&r2=1.38&f=h :) --Jani On Fri, 2 Nov 2001, Sebastian Bergmann wrote: >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 > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]