Re: [PHP4BETA] MySQL not fully supported?

From: Date: Sat, 25 Mar 2000 14:40:12 +0000
Subject: Re: [PHP4BETA] MySQL not fully supported?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-12593@lists.php.net to get a copy of this message
Looks like he has a point... Can we let people override this? Zeev On Sat, 25 Mar 2000, Oliver Billmann wrote: > >> * How to force PHP4 to compile with the MySQL files installed on our server (rather > >> than its own)? > > > > Why do you want to do that? > > Because, than one can be sure that all Apache modules use the same library > and headers files!? > > I had the following problem: > * configured mod_auth_mysql with MySQL 3.22.32 > * configured php4 with the bundled MySQL 3.23.10 library (didn't have a > chance to change this... and didn't know the version at the time...) > > Now every time I accessed a page which was protected via mod_auth_mysql, > apache crashed... > > After debugging apache I found the reason: > mod_auth was configured with MySQL 3.22.32 header files but was linked > against the bundled MySQL 3.23.10 library. Unfortunately, the size of the > MYSQL-struct changed between this two versions.... The mysql_connect call > uses bzero to reset the MYSQL structure and overwrote (due to the size > change) some internal variables of apache which later on caused the crash. > > After installing a recent MySQL 3.23 version (just for mod_auth_mysql) > and configuring mod_auth_mysql against this version, everything works fine > again..... > > Is there a specific reason, why I have to use the bundled library and can't > use an already installed version? > > Oliver > > -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.version4 (#12593) next »