we are using MySQL 3.22.24 or newer when we want to check a mysql struct
instead of a result struct. The reference is here:
http://www.mysql.com/Manual_chapter/manual_Clients.html#mysql_num_fields
#define MYSQL_NUM 1<<1
#define MYSQL_BOTH (MYSQL_ASSOC|MYSQL_NUM)
+#if MYSQL_VERSION_ID < 32224
#define PHP_MYSQL_VALID_RESULT(mysql) \
(mysql_num_fields(mysql)>0)
+#else
+#define PHP_MYSQL_VALID_RESULT(mysql) \
+ (mysql_field_count(mysql)>0)
+#endif
function_entry mysql_functions[] = {
PHP_FE(mysql_connect, NULL)