1999-05-04 03:43:49 +00:00
|
|
|
/*
|
2002-04-17 18:14:03 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| PHP Version 4 |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Copyright (c) 1997-2002 The PHP Group |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| This source file is subject to version 2.02 of the PHP license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available at through the world-wide-web at |
|
|
|
|
| http://www.php.net/license/2_02.txt. |
|
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Andi Gutmans <andi@zend.com> |
|
|
|
|
| Zeev Suraski <zeev@zend.com> |
|
|
|
|
+----------------------------------------------------------------------+
|
1999-05-04 03:43:49 +00:00
|
|
|
|
2002-04-17 18:14:03 +00:00
|
|
|
$Id$
|
|
|
|
*/
|
1999-05-04 03:43:49 +00:00
|
|
|
|
2001-06-06 13:06:12 +00:00
|
|
|
/* {{{ includes
|
|
|
|
*/
|
1999-05-04 03:43:49 +00:00
|
|
|
#include "php.h"
|
2000-06-05 23:24:42 +00:00
|
|
|
#include "php_main.h"
|
2001-02-26 18:14:50 +00:00
|
|
|
#include "zend_modules.h"
|
1999-05-04 03:43:49 +00:00
|
|
|
#include "internal_functions_registry.h"
|
|
|
|
#include "zend_compile.h"
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
1999-05-15 14:56:23 +00:00
|
|
|
#include "ext/standard/dl.h"
|
|
|
|
#include "ext/standard/file.h"
|
|
|
|
#include "ext/standard/fsock.h"
|
|
|
|
#include "ext/standard/head.h"
|
|
|
|
#include "ext/standard/pack.h"
|
1999-12-04 19:19:57 +00:00
|
|
|
#include "ext/standard/php_browscap.h"
|
|
|
|
#include "ext/standard/php_crypt.h"
|
|
|
|
#include "ext/standard/php_dir.h"
|
|
|
|
#include "ext/standard/php_filestat.h"
|
|
|
|
#include "ext/standard/php_mail.h"
|
2000-05-29 17:22:35 +00:00
|
|
|
#include "ext/standard/php_ext_syslog.h"
|
1999-12-04 19:19:57 +00:00
|
|
|
#include "ext/standard/php_standard.h"
|
1999-08-31 18:05:22 +00:00
|
|
|
#include "ext/standard/php_lcg.h"
|
1999-11-19 15:06:57 +00:00
|
|
|
#include "ext/standard/php_array.h"
|
1999-12-07 11:37:30 +00:00
|
|
|
#include "ext/standard/php_assert.h"
|
2002-04-28 17:50:09 +00:00
|
|
|
#if WITH_BCMATH
|
|
|
|
#include "ext/bcmath/php_bcmath.h"
|
|
|
|
#endif
|
2002-04-18 16:34:13 +00:00
|
|
|
#if HAVE_CALENDAR
|
2000-10-06 00:03:02 +00:00
|
|
|
#include "ext/calendar/php_calendar.h"
|
2002-04-18 16:34:13 +00:00
|
|
|
#endif
|
2002-04-28 17:50:09 +00:00
|
|
|
#if HAVE_CTYPE
|
|
|
|
#include "ext/ctype/php_ctype.h"
|
|
|
|
#endif
|
2002-04-18 16:34:13 +00:00
|
|
|
#if HAVE_COM
|
1999-12-30 02:59:53 +00:00
|
|
|
#include "ext/com/php_COM.h"
|
2002-04-18 16:34:13 +00:00
|
|
|
#endif
|
2002-04-17 17:38:03 +00:00
|
|
|
#if HAVE_FTP
|
2000-10-05 23:25:41 +00:00
|
|
|
#include "ext/ftp/php_ftp.h"
|
2002-04-17 17:38:03 +00:00
|
|
|
#endif
|
1999-05-24 18:02:42 +00:00
|
|
|
#include "ext/standard/reg.h"
|
2002-04-18 17:56:53 +00:00
|
|
|
#if HAVE_PCRE || HAVE_BUNDLED_PCRE
|
1999-07-06 19:49:48 +00:00
|
|
|
#include "ext/pcre/php_pcre.h"
|
2002-04-18 17:56:53 +00:00
|
|
|
#endif
|
2002-04-17 17:57:40 +00:00
|
|
|
#if HAVE_UODBC
|
1999-09-05 19:36:04 +00:00
|
|
|
#include "ext/odbc/php_odbc.h"
|
2002-04-17 17:57:40 +00:00
|
|
|
#endif
|
2002-04-18 16:34:13 +00:00
|
|
|
#if HAVE_SESSION
|
1999-09-01 19:28:07 +00:00
|
|
|
#include "ext/session/php_session.h"
|
2002-04-18 16:34:13 +00:00
|
|
|
#endif
|
2002-04-17 17:51:30 +00:00
|
|
|
#if HAVE_LIBEXPAT
|
2000-02-02 18:42:04 +00:00
|
|
|
#include "ext/xml/php_xml.h"
|
2002-04-17 17:51:30 +00:00
|
|
|
#endif
|
|
|
|
#if HAVE_LIBEXPAT && HAVE_WDDX
|
2000-04-07 10:21:17 +00:00
|
|
|
#include "ext/wddx/php_wddx.h"
|
2002-04-17 17:51:30 +00:00
|
|
|
#endif
|
2002-04-17 18:10:35 +00:00
|
|
|
#if HAVE_MYSQL
|
2000-02-23 21:10:18 +00:00
|
|
|
#include "ext/mysql/php_mysql.h"
|
2002-04-17 18:10:35 +00:00
|
|
|
#endif
|
2002-04-28 17:50:09 +00:00
|
|
|
#if HAVE_MBSTRING
|
2001-07-30 01:56:43 +00:00
|
|
|
#include "ext/mbstring/mbstring.h"
|
2002-04-18 16:39:30 +00:00
|
|
|
#endif
|
2002-09-04 13:55:52 +00:00
|
|
|
#ifndef ZEND_ENGINE_2
|
2001-12-10 17:14:42 +00:00
|
|
|
#if HAVE_OVERLOAD
|
|
|
|
#include "ext/overload/php_overload.h"
|
|
|
|
#endif
|
2002-09-04 13:55:52 +00:00
|
|
|
#endif
|
2002-04-18 16:34:13 +00:00
|
|
|
#if HAVE_TOKENIZER
|
2002-04-17 04:44:02 +00:00
|
|
|
#include "ext/tokenizer/php_tokenizer.h"
|
2002-04-18 16:34:13 +00:00
|
|
|
#endif
|
2001-06-06 13:06:12 +00:00
|
|
|
/* }}} */
|
1999-05-04 03:43:49 +00:00
|
|
|
|
2001-06-06 13:06:12 +00:00
|
|
|
/* {{{ php_builtin_extensions[]
|
|
|
|
*/
|
1999-12-07 20:49:01 +00:00
|
|
|
zend_module_entry *php_builtin_extensions[] = {
|
2002-04-18 17:56:53 +00:00
|
|
|
phpext_standard_ptr
|
1999-07-19 16:08:43 +00:00
|
|
|
#if WITH_BCMATH
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_bcmath_ptr
|
1999-07-19 16:08:43 +00:00
|
|
|
#endif
|
2002-04-18 16:34:13 +00:00
|
|
|
#if HAVE_CALENDAR
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_calendar_ptr
|
2002-04-18 16:34:13 +00:00
|
|
|
#endif
|
2002-04-28 17:50:09 +00:00
|
|
|
#if HAVE_CTYPE
|
|
|
|
,phpext_ctype_ptr
|
|
|
|
#endif
|
2002-04-18 16:34:13 +00:00
|
|
|
#if HAVE_COM
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_com_ptr
|
2002-04-18 16:34:13 +00:00
|
|
|
#endif
|
2002-04-17 17:38:03 +00:00
|
|
|
#if HAVE_FTP
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_ftp_ptr
|
2002-04-17 17:38:03 +00:00
|
|
|
#endif
|
2002-04-28 17:50:09 +00:00
|
|
|
#if HAVE_MBSTRING
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_mbstring_ptr
|
2001-07-29 22:15:41 +00:00
|
|
|
#endif
|
2002-04-17 18:10:35 +00:00
|
|
|
#if HAVE_MYSQL
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_mysql_ptr
|
2002-04-17 18:10:35 +00:00
|
|
|
#endif
|
2002-04-17 17:57:40 +00:00
|
|
|
#if HAVE_UODBC
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_odbc_ptr
|
2002-04-17 17:57:40 +00:00
|
|
|
#endif
|
2002-09-04 13:55:52 +00:00
|
|
|
#ifndef ZEND_ENGINE_2
|
2001-12-10 17:14:42 +00:00
|
|
|
#if HAVE_OVERLOAD
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_overload_ptr
|
|
|
|
#endif
|
2002-09-04 13:55:52 +00:00
|
|
|
#endif
|
2002-04-18 17:56:53 +00:00
|
|
|
#if HAVE_PCRE || HAVE_BUNDLED_PCRE
|
|
|
|
,phpext_pcre_ptr
|
|
|
|
#endif
|
|
|
|
#if HAVE_SESSION
|
|
|
|
,phpext_session_ptr
|
2001-12-10 17:14:42 +00:00
|
|
|
#endif
|
2002-04-18 16:34:13 +00:00
|
|
|
#if HAVE_TOKENIZER
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_tokenizer_ptr
|
2002-04-18 16:34:13 +00:00
|
|
|
#endif
|
2002-04-17 17:51:30 +00:00
|
|
|
#if HAVE_LIBEXPAT
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_xml_ptr
|
2002-04-17 17:51:30 +00:00
|
|
|
#endif
|
|
|
|
#if HAVE_LIBEXPAT && HAVE_WDDX
|
2002-04-18 17:56:53 +00:00
|
|
|
,phpext_wddx_ptr
|
2002-04-18 16:34:13 +00:00
|
|
|
#endif
|
1999-05-04 03:43:49 +00:00
|
|
|
};
|
2001-06-06 13:06:12 +00:00
|
|
|
/* }}} */
|
1999-05-04 03:43:49 +00:00
|
|
|
|
1999-12-07 20:49:01 +00:00
|
|
|
#define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
|
1999-05-04 03:43:49 +00:00
|
|
|
|
1999-12-07 20:49:01 +00:00
|
|
|
int php_startup_internal_extensions(void)
|
1999-05-04 03:43:49 +00:00
|
|
|
{
|
1999-12-07 20:49:01 +00:00
|
|
|
return php_startup_extensions(php_builtin_extensions, EXTCOUNT);
|
1999-05-04 03:43:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
2001-09-09 13:29:31 +00:00
|
|
|
* vim600: sw=4 ts=4 fdm=marker
|
|
|
|
* vim<600: sw=4 ts=4
|
1999-05-04 03:43:49 +00:00
|
|
|
*/
|