Web Hosting Talk







View Full Version : PHP 4.0.6 bug


netastic
09-24-2001, 02:24 PM
does the below quoted from http://pkg.nl.cobalt.com/packages/raq/4/ fix the bug in this version of PHP?

"If you use mysql with php, please note you need to add a line 'extension=mysql.so' to /etc/httpd/php.ini to load the mysql php-module "

if so, how do i put this line in /etc/httpd/php.ini? i tried to vi this file, but it didn't look like there was anything there. so i was too spooked to just type in the line above.

netastic
09-24-2001, 02:33 PM
more info on the bug:

http://www.php.net/bugs.php?id=4759

Things get put in the database, but only the first SQL INSERT or UPDATE or DELETE command works - "SELECTs" work fine, but anything that needs to update the DB in any way breaks. It *works*, but PHP reports an error.

What seems to be the case is that the client library compiled in to PHP is somewhat out of date, and the new mysql stuff doesn't talk properly with an old library. That's my hunch. The other related possibility is that there is another mysql client library loaded into Apache's RAM space which is conflicting with the PHP one. A possibility, because iHTML and unixODBC are on the box ( think).

Has anyone else been able to simply use the cobalt PKG files for mysql and PHP and have them work together without this bug?