2015-01-03 17:22:58 +08:00
|
|
|
/*
|
2002-04-18 02:14:03 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2014-09-20 00:33:14 +08:00
|
|
|
| PHP Version 7 |
|
2002-04-18 02:14:03 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2018-01-02 12:57:58 +08:00
|
|
|
| Copyright (c) 1997-2018 The PHP Group |
|
2002-04-18 02:14:03 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 20:51:34 +08:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2002-04-18 02:14:03 +08:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-11 04:04:29 +08:00
|
|
|
| available through the world-wide-web at the following url: |
|
2006-01-01 20:51:34 +08:00
|
|
|
| http://www.php.net/license/3_01.txt |
|
2002-04-18 02:14:03 +08:00
|
|
|
| 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 11:43:49 +08:00
|
|
|
|
2003-02-19 16:40:19 +08:00
|
|
|
/* $Id$ */
|
|
|
|
|
2001-06-06 21:06:12 +08:00
|
|
|
/* {{{ includes
|
|
|
|
*/
|
1999-05-04 11:43:49 +08:00
|
|
|
#include "php.h"
|
2000-06-06 07:24:42 +08:00
|
|
|
#include "php_main.h"
|
2001-02-27 02:14:50 +08:00
|
|
|
#include "zend_modules.h"
|
1999-05-04 11:43:49 +08:00
|
|
|
#include "zend_compile.h"
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
1999-05-15 22:56:23 +08: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-05 03:19:57 +08: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-30 01:22:35 +08:00
|
|
|
#include "ext/standard/php_ext_syslog.h"
|
1999-12-05 03:19:57 +08:00
|
|
|
#include "ext/standard/php_standard.h"
|
1999-09-01 02:05:22 +08:00
|
|
|
#include "ext/standard/php_lcg.h"
|
1999-11-19 23:06:57 +08:00
|
|
|
#include "ext/standard/php_array.h"
|
1999-12-07 19:37:30 +08:00
|
|
|
#include "ext/standard/php_assert.h"
|
2006-06-05 17:02:28 +08:00
|
|
|
#include "ext/reflection/php_reflection.h"
|
2003-12-10 07:59:33 +08:00
|
|
|
#if HAVE_BCMATH
|
2002-04-29 01:50:09 +08:00
|
|
|
#include "ext/bcmath/php_bcmath.h"
|
|
|
|
#endif
|
2002-04-19 00:34:13 +08:00
|
|
|
#if HAVE_CALENDAR
|
2000-10-06 08:03:02 +08:00
|
|
|
#include "ext/calendar/php_calendar.h"
|
2002-04-19 00:34:13 +08:00
|
|
|
#endif
|
2002-04-29 01:50:09 +08:00
|
|
|
#if HAVE_CTYPE
|
|
|
|
#include "ext/ctype/php_ctype.h"
|
|
|
|
#endif
|
2006-06-05 17:02:28 +08:00
|
|
|
#if HAVE_DATE
|
|
|
|
#include "ext/date/php_date.h"
|
|
|
|
#endif
|
2002-04-18 01:38:03 +08:00
|
|
|
#if HAVE_FTP
|
2000-10-06 07:25:41 +08:00
|
|
|
#include "ext/ftp/php_ftp.h"
|
2002-04-18 01:38:03 +08:00
|
|
|
#endif
|
2006-06-05 17:02:28 +08:00
|
|
|
#if HAVE_ICONV
|
|
|
|
#include "ext/iconv/php_iconv.h"
|
|
|
|
#endif
|
1999-05-25 02:02:42 +08:00
|
|
|
#include "ext/standard/reg.h"
|
2002-04-19 01:56:53 +08:00
|
|
|
#if HAVE_PCRE || HAVE_BUNDLED_PCRE
|
1999-07-07 03:49:48 +08:00
|
|
|
#include "ext/pcre/php_pcre.h"
|
2002-04-19 01:56:53 +08:00
|
|
|
#endif
|
2002-04-18 01:57:40 +08:00
|
|
|
#if HAVE_UODBC
|
1999-09-06 03:36:04 +08:00
|
|
|
#include "ext/odbc/php_odbc.h"
|
2002-04-18 01:57:40 +08:00
|
|
|
#endif
|
2003-08-26 10:50:39 +08:00
|
|
|
#if HAVE_PHP_SESSION
|
1999-09-02 03:28:07 +08:00
|
|
|
#include "ext/session/php_session.h"
|
2002-04-19 00:34:13 +08:00
|
|
|
#endif
|
2002-04-29 01:50:09 +08:00
|
|
|
#if HAVE_MBSTRING
|
2001-07-30 09:56:43 +08:00
|
|
|
#include "ext/mbstring/mbstring.h"
|
2002-04-19 00:39:30 +08:00
|
|
|
#endif
|
2002-04-19 00:34:13 +08:00
|
|
|
#if HAVE_TOKENIZER
|
2002-04-17 12:44:02 +08:00
|
|
|
#include "ext/tokenizer/php_tokenizer.h"
|
2002-04-19 00:34:13 +08:00
|
|
|
#endif
|
2002-12-26 21:40:32 +08:00
|
|
|
#if HAVE_ZLIB
|
|
|
|
#include "ext/zlib/php_zlib.h"
|
|
|
|
#endif
|
2003-06-26 05:37:50 +08:00
|
|
|
#if HAVE_LIBXML
|
2003-10-20 05:48:46 +08:00
|
|
|
#include "ext/libxml/php_libxml.h"
|
2003-06-26 05:37:50 +08:00
|
|
|
#if HAVE_DOM
|
|
|
|
#include "ext/dom/php_dom.h"
|
|
|
|
#endif
|
|
|
|
#if HAVE_SIMPLEXML
|
|
|
|
#include "ext/simplexml/php_simplexml.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if HAVE_XML
|
|
|
|
#include "ext/xml/php_xml.h"
|
|
|
|
#endif
|
|
|
|
#if HAVE_XML && HAVE_WDDX
|
|
|
|
#include "ext/wddx/php_wddx.h"
|
|
|
|
#endif
|
2003-08-15 00:49:56 +08:00
|
|
|
#include "ext/com_dotnet/php_com_dotnet.h"
|
2006-06-05 17:02:28 +08:00
|
|
|
#ifdef HAVE_SPL
|
|
|
|
#include "ext/spl/php_spl.h"
|
|
|
|
#endif
|
|
|
|
#if HAVE_XML && HAVE_XMLREADER
|
|
|
|
#include "ext/xmlreader/php_xmlreader.h"
|
|
|
|
#endif
|
|
|
|
#if HAVE_XML && HAVE_XMLWRITER
|
|
|
|
#include "ext/xmlwriter/php_xmlwriter.h"
|
|
|
|
#endif
|
2001-06-06 21:06:12 +08:00
|
|
|
/* }}} */
|
1999-05-04 11:43:49 +08:00
|
|
|
|
2001-06-06 21:06:12 +08:00
|
|
|
/* {{{ php_builtin_extensions[]
|
|
|
|
*/
|
2017-12-14 23:43:44 +08:00
|
|
|
static zend_module_entry * const php_builtin_extensions[] = {
|
2002-04-19 01:56:53 +08:00
|
|
|
phpext_standard_ptr
|
2003-12-10 07:59:33 +08:00
|
|
|
#if HAVE_BCMATH
|
2002-04-19 01:56:53 +08:00
|
|
|
,phpext_bcmath_ptr
|
1999-07-20 00:08:43 +08:00
|
|
|
#endif
|
2002-04-19 00:34:13 +08:00
|
|
|
#if HAVE_CALENDAR
|
2002-04-19 01:56:53 +08:00
|
|
|
,phpext_calendar_ptr
|
2002-04-19 00:34:13 +08:00
|
|
|
#endif
|
2003-08-15 00:49:56 +08:00
|
|
|
,phpext_com_dotnet_ptr
|
2002-04-29 01:50:09 +08:00
|
|
|
#if HAVE_CTYPE
|
|
|
|
,phpext_ctype_ptr
|
|
|
|
#endif
|
2006-06-05 17:02:28 +08:00
|
|
|
#if HAVE_DATE
|
|
|
|
,phpext_date_ptr
|
|
|
|
#endif
|
2002-04-18 01:38:03 +08:00
|
|
|
#if HAVE_FTP
|
2002-04-19 01:56:53 +08:00
|
|
|
,phpext_ftp_ptr
|
2002-04-18 01:38:03 +08:00
|
|
|
#endif
|
2006-06-05 17:02:28 +08:00
|
|
|
#if HAVE_HASH
|
|
|
|
,phpext_hash_ptr
|
|
|
|
#endif
|
|
|
|
#if HAVE_ICONV
|
|
|
|
,phpext_iconv_ptr
|
|
|
|
#endif
|
2002-04-29 01:50:09 +08:00
|
|
|
#if HAVE_MBSTRING
|
2002-04-19 01:56:53 +08:00
|
|
|
,phpext_mbstring_ptr
|
2001-07-30 06:15:41 +08:00
|
|
|
#endif
|
2002-04-18 01:57:40 +08:00
|
|
|
#if HAVE_UODBC
|
2002-04-19 01:56:53 +08:00
|
|
|
,phpext_odbc_ptr
|
2002-04-18 01:57:40 +08:00
|
|
|
#endif
|
2002-04-19 01:56:53 +08:00
|
|
|
#if HAVE_PCRE || HAVE_BUNDLED_PCRE
|
|
|
|
,phpext_pcre_ptr
|
|
|
|
#endif
|
2006-06-05 17:02:28 +08:00
|
|
|
,phpext_reflection_ptr
|
2003-08-26 10:50:39 +08:00
|
|
|
#if HAVE_PHP_SESSION
|
2002-04-19 01:56:53 +08:00
|
|
|
,phpext_session_ptr
|
2001-12-11 01:14:42 +08:00
|
|
|
#endif
|
2002-04-19 00:34:13 +08:00
|
|
|
#if HAVE_TOKENIZER
|
2002-04-19 01:56:53 +08:00
|
|
|
,phpext_tokenizer_ptr
|
2002-04-19 00:34:13 +08:00
|
|
|
#endif
|
2003-06-26 05:37:50 +08:00
|
|
|
#if HAVE_ZLIB
|
|
|
|
,phpext_zlib_ptr
|
|
|
|
#endif
|
|
|
|
#if HAVE_LIBXML
|
2003-10-20 05:48:46 +08:00
|
|
|
,phpext_libxml_ptr
|
2003-06-26 05:37:50 +08:00
|
|
|
#if HAVE_DOM
|
2003-08-15 01:06:43 +08:00
|
|
|
,phpext_dom_ptr
|
2003-06-26 05:37:50 +08:00
|
|
|
#endif
|
|
|
|
#if HAVE_SIMPLEXML
|
2003-08-15 01:06:43 +08:00
|
|
|
,phpext_simplexml_ptr
|
2003-06-26 05:37:50 +08:00
|
|
|
#endif
|
|
|
|
#endif
|
2003-05-24 16:03:38 +08:00
|
|
|
#if HAVE_XML
|
2003-08-15 01:06:43 +08:00
|
|
|
,phpext_xml_ptr
|
2002-04-18 01:51:30 +08:00
|
|
|
#endif
|
2003-05-24 16:03:38 +08:00
|
|
|
#if HAVE_XML && HAVE_WDDX
|
2002-04-19 01:56:53 +08:00
|
|
|
,phpext_wddx_ptr
|
2002-04-19 00:34:13 +08:00
|
|
|
#endif
|
2006-06-05 17:02:28 +08:00
|
|
|
#if HAVE_SPL
|
|
|
|
,phpext_spl_ptr
|
|
|
|
#endif
|
|
|
|
#if HAVE_XML && HAVE_XMLREADER
|
|
|
|
,phpext_xmlreader_ptr
|
|
|
|
#endif
|
|
|
|
#if HAVE_XML && HAVE_XMLWRITER
|
|
|
|
,phpext_xmlwriter_ptr
|
|
|
|
#endif
|
1999-05-04 11:43:49 +08:00
|
|
|
};
|
2001-06-06 21:06:12 +08:00
|
|
|
/* }}} */
|
1999-05-04 11:43:49 +08:00
|
|
|
|
1999-12-08 04:49:01 +08:00
|
|
|
#define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
|
2015-01-03 17:22:58 +08:00
|
|
|
|
2014-12-14 06:06:14 +08:00
|
|
|
PHPAPI int php_register_internal_extensions(void)
|
1999-05-04 11:43:49 +08:00
|
|
|
{
|
2014-12-14 06:06:14 +08:00
|
|
|
return php_register_extensions(php_builtin_extensions, EXTCOUNT);
|
1999-05-04 11:43:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
2001-09-09 21:29:31 +08:00
|
|
|
* vim600: sw=4 ts=4 fdm=marker
|
|
|
|
* vim<600: sw=4 ts=4
|
1999-05-04 11:43:49 +08:00
|
|
|
*/
|