cvs: php4 /ext/mysql php_mysql.c
| From: | Anantha Kesari H Y | Date: | Mon, 15 Jul 2002 11:14:18 +0000 |
| Subject: | cvs: php4 /ext/mysql php_mysql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12843@lists.php.net to get a copy of this message | ||
hyanantha Mon Jul 15 07:14:18 2002 EDT
Modified files:
/php4/ext/mysql php_mysql.c
Log:
mysql_create_db and mysql_drop_db disabled for NetWare
Index: php4/ext/mysql/php_mysql.c
diff -u php4/ext/mysql/php_mysql.c:1.142 php4/ext/mysql/php_mysql.c:1.143
--- php4/ext/mysql/php_mysql.c:1.142 Fri Jul 12 19:25:30 2002
+++ php4/ext/mysql/php_mysql.c Mon Jul 15 07:14:18 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mysql.c,v 1.142 2002/07/12 23:25:30 sniper Exp $ */
+/* $Id: php_mysql.c,v 1.143 2002/07/15 11:14:18 hyanantha Exp $ */
/* TODO:
*
@@ -116,10 +116,12 @@
PHP_FE(mysql_pconnect, NULL)
PHP_FE(mysql_close, NULL)
PHP_FE(mysql_select_db, NULL)
+#ifndef NETWARE /* The below two functions not supported on NetWare */
#if MYSQL_VERSION_ID < 40000
PHP_FE(mysql_create_db, NULL)
PHP_FE(mysql_drop_db, NULL)
#endif
+#endif /* NETWARE */
PHP_FE(mysql_query, NULL)
PHP_FE(mysql_unbuffered_query, NULL)
PHP_FE(mysql_db_query, NULL)
@@ -173,10 +175,12 @@
PHP_FALIAS(mysql_fieldtype, mysql_field_type, NULL)
PHP_FALIAS(mysql_fieldflags, mysql_field_flags, NULL)
PHP_FALIAS(mysql_selectdb, mysql_select_db, NULL)
+#ifndef NETWARE /* The below two functions not supported on NetWare */
#if MYSQL_VERSION_ID < 40000
PHP_FALIAS(mysql_createdb, mysql_create_db, NULL)
PHP_FALIAS(mysql_dropdb, mysql_drop_db, NULL)
#endif
+#endif /* NETWARE */
PHP_FALIAS(mysql_freeresult, mysql_free_result, NULL)
PHP_FALIAS(mysql_numfields, mysql_num_fields, NULL)
PHP_FALIAS(mysql_numrows, mysql_num_rows, NULL)
@@ -1076,6 +1080,7 @@
/* }}} */
#endif
+#ifndef NETWARE /* The below two functions not supported on NetWare */
#if MYSQL_VERSION_ID < 40000
/* {{{ proto bool mysql_create_db(string database_name [, int link_identifier])
Create a MySQL database */
@@ -1156,6 +1161,7 @@
}
/* }}} */
#endif
+#endif /* NETWARE */
/* {{{ php_mysql_do_query_general
*/