1999-05-04 11:43:49 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
1999-07-16 21:13:16 +08:00
|
|
|
| PHP version 4.0 |
|
1999-05-04 11:43:49 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2000-01-01 09:32:05 +08:00
|
|
|
| Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
|
1999-05-04 11:43:49 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2000-05-18 23:34:45 +08:00
|
|
|
| This source file is subject to version 2.02 of the PHP license, |
|
1999-07-16 21:13:16 +08:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available at through the world-wide-web at |
|
2000-05-18 23:34:45 +08:00
|
|
|
| http://www.php.net/license/2_02.txt. |
|
1999-07-16 21:13:16 +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. |
|
1999-05-04 11:43:49 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Andi Gutmans <andi@zend.com> |
|
|
|
|
| Zeev Suraski <zeev@zend.com> |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
|
|
|
|
#include "php.h"
|
1999-12-08 04:49:01 +08:00
|
|
|
#include "main.h"
|
1999-05-04 11:43:49 +08:00
|
|
|
#include "modules.h"
|
|
|
|
#include "internal_functions_registry.h"
|
|
|
|
#include "zend_compile.h"
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
1999-12-05 03:19:57 +08:00
|
|
|
#include "ext/bcmath/php_bcmath.h"
|
|
|
|
#include "ext/db/php_db.h"
|
|
|
|
#include "ext/gd/php_gd.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"
|
|
|
|
#include "ext/standard/php_syslog.h"
|
|
|
|
#include "ext/standard/php_standard.h"
|
1999-09-01 02:05:22 +08:00
|
|
|
#include "ext/standard/php_lcg.h"
|
1999-10-28 02:30:41 +08:00
|
|
|
#include "ext/standard/php_output.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"
|
1999-12-30 10:59:53 +08:00
|
|
|
#include "ext/com/php_COM.h"
|
1999-05-25 02:02:42 +08:00
|
|
|
#include "ext/standard/reg.h"
|
1999-07-07 03:49:48 +08:00
|
|
|
#include "ext/pcre/php_pcre.h"
|
1999-09-06 03:36:04 +08:00
|
|
|
#include "ext/odbc/php_odbc.h"
|
1999-09-02 03:28:07 +08:00
|
|
|
#include "ext/session/php_session.h"
|
2000-02-03 02:42:04 +08:00
|
|
|
#include "ext/xml/php_xml.h"
|
2000-04-07 18:21:17 +08:00
|
|
|
#include "ext/wddx/php_wddx.h"
|
2000-02-24 05:10:18 +08:00
|
|
|
#include "ext/mysql/php_mysql.h"
|
1999-05-04 11:43:49 +08:00
|
|
|
|
|
|
|
/* SNMP has to be moved to ext */
|
1999-12-05 03:19:57 +08:00
|
|
|
/* #include "dl/snmp/php_snmp.h" */
|
1999-05-04 11:43:49 +08:00
|
|
|
|
1999-12-08 04:49:01 +08:00
|
|
|
zend_module_entry *php_builtin_extensions[] = {
|
1999-07-20 00:08:43 +08:00
|
|
|
#if WITH_BCMATH
|
1999-05-04 11:43:49 +08:00
|
|
|
phpext_bcmath_ptr,
|
1999-07-20 00:08:43 +08:00
|
|
|
#endif
|
1999-05-04 11:43:49 +08:00
|
|
|
phpext_standard_ptr,
|
1999-05-25 02:02:42 +08:00
|
|
|
COM_module_ptr,
|
1999-08-10 02:29:40 +08:00
|
|
|
phpext_pcre_ptr,
|
1999-08-23 03:19:42 +08:00
|
|
|
phpext_odbc_ptr,
|
1999-10-28 02:30:41 +08:00
|
|
|
phpext_session_ptr,
|
2000-02-24 05:10:18 +08:00
|
|
|
phpext_xml_ptr,
|
2000-04-07 18:21:17 +08:00
|
|
|
phpext_wddx_ptr,
|
2000-02-24 05:10:18 +08:00
|
|
|
phpext_mysql_ptr
|
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 *))
|
|
|
|
|
1999-05-04 11:43:49 +08:00
|
|
|
|
1999-12-08 04:49:01 +08:00
|
|
|
int php_startup_internal_extensions(void)
|
1999-05-04 11:43:49 +08:00
|
|
|
{
|
1999-12-08 04:49:01 +08:00
|
|
|
return php_startup_extensions(php_builtin_extensions, EXTCOUNT);
|
1999-05-04 11:43:49 +08:00
|
|
|
}
|
|
|
|
|
1999-12-08 04:49:01 +08:00
|
|
|
int php_global_startup_internal_extensions(void)
|
1999-09-04 02:33:30 +08:00
|
|
|
{
|
1999-12-08 04:49:01 +08:00
|
|
|
return php_global_startup_extensions(php_builtin_extensions, EXTCOUNT);
|
1999-09-04 02:33:30 +08:00
|
|
|
}
|
|
|
|
|
1999-12-08 04:49:01 +08:00
|
|
|
int php_global_shutdown_internal_extensions(void)
|
1999-09-04 02:33:30 +08:00
|
|
|
{
|
1999-12-08 04:49:01 +08:00
|
|
|
return php_global_shutdown_extensions(php_builtin_extensions, EXTCOUNT);
|
1999-09-04 02:33:30 +08:00
|
|
|
}
|
|
|
|
|
1999-05-04 11:43:49 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
*/
|