1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00

Add HAVE_CALENDAR, HAVE_COM, HAVE_SESSION and HAVE_TOKENIZER to enable/disable these extensions, respectively. It is now possible to build PHP on Win32 with just ext/standard and ext/pcre. The latter is needed by the former, because at least the aggregation functions use PCRE.

This commit is contained in:
Sebastian Bergmann
2002-04-18 16:34:13 +00:00
parent d11ee7c1ea
commit 05a2de0d6a
2 changed files with 29 additions and 1 deletions
+12
View File
@@ -27,6 +27,12 @@
#define PHP_MD5_CRYPT 0
#define PHP_BLOWFISH_CRYPT 0
/* Enable / Disable CALENDAR extension (default: enabled) */
#define HAVE_CALENDAR 1
/* Enable / Disable COM extension (default: enabled) */
#define HAVE_COM 1
/* Enable / Disable FTP extension (default: enabled) */
#define HAVE_FTP 1
@@ -43,6 +49,12 @@
#define HAVE_BUNDLED_PCRE 1
#define HAVE_PCRE 1
/* Enable / Disable SESSION extension (default: enabled) */
#define HAVE_SESSION 1
/* Enable / Disable TOKENIZER extension (default: enabled) */
#define HAVE_TOKENIZER 1
/* Enable / Disable WDDX extension (default: enabled) */
#define HAVE_WDDX 1
+17 -1
View File
@@ -48,8 +48,12 @@
#include "ext/standard/php_lcg.h"
#include "ext/standard/php_array.h"
#include "ext/standard/php_assert.h"
#if HAVE_CALENDAR
#include "ext/calendar/php_calendar.h"
#endif
#if HAVE_COM
#include "ext/com/php_COM.h"
#endif
#if HAVE_FTP
#include "ext/ftp/php_ftp.h"
#endif
@@ -58,7 +62,9 @@
#if HAVE_UODBC
#include "ext/odbc/php_odbc.h"
#endif
#if HAVE_SESSION
#include "ext/session/php_session.h"
#endif
#if HAVE_LIBEXPAT
#include "ext/xml/php_xml.h"
#endif
@@ -72,18 +78,25 @@
#if HAVE_OVERLOAD
#include "ext/overload/php_overload.h"
#endif
#if HAVE_TOKENIZER
#include "ext/tokenizer/php_tokenizer.h"
#endif
/* }}} */
/* {{{ php_builtin_extensions[]
*/
zend_module_entry *php_builtin_extensions[] = {
phpext_standard_ptr,
phpext_pcre_ptr,
#if WITH_BCMATH
phpext_bcmath_ptr,
#endif
#if HAVE_CALENDAR
phpext_calendar_ptr,
#endif
#if HAVE_COM
phpext_com_ptr,
#endif
#if HAVE_FTP
phpext_ftp_ptr,
#endif
@@ -99,15 +112,18 @@ zend_module_entry *php_builtin_extensions[] = {
#if HAVE_OVERLOAD
phpext_overload_ptr,
#endif
#if HAVE_TOKENIZER
phpext_tokenizer_ptr,
phpext_pcre_ptr,
#endif
#if HAVE_LIBEXPAT
phpext_xml_ptr,
#endif
#if HAVE_LIBEXPAT && HAVE_WDDX
phpext_wddx_ptr,
#endif
#if HAVE_SESSION
phpext_session_ptr
#endif
};
/* }}} */