php-src/main/internal_functions_win32.c

199 lines
4.6 KiB
C
Raw Normal View History

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 |
| 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> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
/* {{{ includes
*/
#include "php.h"
2000-06-06 07:24:42 +08:00
#include "php_main.h"
#include "zend_modules.h"
#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"
#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"
#include "ext/standard/php_ext_syslog.h"
#include "ext/standard/php_standard.h"
#include "ext/standard/php_lcg.h"
1999-11-19 23:06:57 +08:00
#include "ext/standard/php_array.h"
#include "ext/standard/php_assert.h"
2006-06-05 17:02:28 +08:00
#include "ext/reflection/php_reflection.h"
#if HAVE_BCMATH
#include "ext/bcmath/php_bcmath.h"
#endif
#if HAVE_CALENDAR
2000-10-06 08:03:02 +08:00
#include "ext/calendar/php_calendar.h"
#endif
#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
#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
#if HAVE_PHP_SESSION
#include "ext/session/php_session.h"
#endif
#if HAVE_MBSTRING
#include "ext/mbstring/mbstring.h"
2002-04-19 00:39:30 +08:00
#endif
#if HAVE_TOKENIZER
#include "ext/tokenizer/php_tokenizer.h"
#endif
#if HAVE_ZLIB
#include "ext/zlib/php_zlib.h"
#endif
#if HAVE_LIBXML
#include "ext/libxml/php_libxml.h"
#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
#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
/* }}} */
/* {{{ php_builtin_extensions[]
*/
static zend_module_entry * const php_builtin_extensions[] = {
2002-04-19 01:56:53 +08:00
phpext_standard_ptr
#if HAVE_BCMATH
2002-04-19 01:56:53 +08:00
,phpext_bcmath_ptr
1999-07-20 00:08:43 +08:00
#endif
#if HAVE_CALENDAR
2002-04-19 01:56:53 +08:00
,phpext_calendar_ptr
#endif
,phpext_com_dotnet_ptr
#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
#if HAVE_MBSTRING
2002-04-19 01:56:53 +08:00
,phpext_mbstring_ptr
#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
#if HAVE_PHP_SESSION
2002-04-19 01:56:53 +08:00
,phpext_session_ptr
#endif
#if HAVE_TOKENIZER
2002-04-19 01:56:53 +08:00
,phpext_tokenizer_ptr
#endif
#if HAVE_ZLIB
,phpext_zlib_ptr
#endif
#if HAVE_LIBXML
,phpext_libxml_ptr
#if HAVE_DOM
2003-08-15 01:06:43 +08:00
,phpext_dom_ptr
#endif
#if HAVE_SIMPLEXML
2003-08-15 01:06:43 +08:00
,phpext_simplexml_ptr
#endif
#endif
#if HAVE_XML
2003-08-15 01:06:43 +08:00
,phpext_xml_ptr
#endif
#if HAVE_XML && HAVE_WDDX
2002-04-19 01:56:53 +08:00
,phpext_wddx_ptr
#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
};
/* }}} */
#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)
{
2014-12-14 06:06:14 +08:00
return php_register_extensions(php_builtin_extensions, EXTCOUNT);
}
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: sw=4 ts=4 fdm=marker
* vim<600: sw=4 ts=4
*/