Adding HAVE_MYSQL check
| From: | Sebastian Bergmann | Date: | Thu, 18 Apr 2002 11:56:52 +0000 |
| Subject: | Adding HAVE_MYSQL check | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-82951@lists.php.net to get a copy of this message | ||
Does the following patch work for *NIX?
RCS file: /repository/php4/ext/mysql/php_mysql.c,v
retrieving revision 1.132
diff -u -2 -b -w -B -r1.132 php_mysql.c
--- php_mysql.c 29 Mar 2002 12:56:25 -0000 1.132
+++ php_mysql.c 18 Apr 2002 11:51:58 -0000
@@ -29,4 +29,6 @@
#endif
+#if HAVE_MYSQL
+
#include "php.h"
#include "php_globals.h"
@@ -2255,4 +2257,6 @@
}
/* }}} */
+
+#endif
/*
On the Win32 platform it allows for disabling the MySQL extension,
which is built-in by default.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/