Re: [Fwd: PHP and MySQL 4.0.0]
| From: | Jani Taskinen | Date: | Fri, 02 Nov 2001 07:09:10 +0000 |
| Subject: | Re: [Fwd: PHP and MySQL 4.0.0] | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69515@lists.php.net to get a copy of this message | ||
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
>
>