[PHPLIB] MySQL 3.23 and PHP3/PHPLIB - potential problem? From: xendra (xendra <email protected>)
Date: 01/28/00

I've been studying the MySQL documentation and found the following:
------------------
4.16.1 Upgrading from a 3.22 version to a 3.23

<...removed for brevity>

The following lists what you have to watch out for when upgrading to 3.23

<...removed for brevity>

o mysql_num_fields() can no longer be used on a MYSQL* object (it's now a
function that takes MYSQL_RES* as an argument. You should now use
mysql_field_count() instead.
------------------

I've seen some questions in the PHPLIB mailing list asking why the
num_fields() function always returns 0 (in db_mysql.inc). The assumption,
after reading this, is that they are on a system with version 3.23 instead
of 3.22.

In the PHP3 documentation I have, there is no supported mysql_field_count()
function. That means we're at the mercy of a version of PHP3 that needs
updating to be compatible with MySQL 3.23 (perhaps it has been updated and I
just don't know about it. I'd like to think someone else has noticed this
before and hopefully there is a fix for it).

My host currently uses version 3.22.19. However, there is talk of updating
soon. This scares me because it will break several dozen (or more) scripts.

Comments?

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.