xref: /PHP-7.4/main/internal_functions.c.in (revision f6382985)
1/*
2   +----------------------------------------------------------------------+
3   | PHP Version 7                                                        |
4   +----------------------------------------------------------------------+
5   | Copyright (c) The PHP Group                                          |
6   +----------------------------------------------------------------------+
7   | This source file is subject to version 3.01 of the PHP license,      |
8   | that is bundled with this package in the file LICENSE, and is        |
9   | available through the world-wide-web at the following url:           |
10   | http://www.php.net/license/3_01.txt                                  |
11   | If you did not receive a copy of the PHP license and are unable to   |
12   | obtain it through the world-wide-web, please send a note to          |
13   | license@php.net so we can mail you a copy immediately.               |
14   +----------------------------------------------------------------------+
15   | Authors: Andi Gutmans <andi@php.net>                                 |
16   |          Zeev Suraski <zeev@php.net>                                 |
17   +----------------------------------------------------------------------+
18 */
19
20#include "php.h"
21#include "php_main.h"
22#include "zend_modules.h"
23#include "zend_compile.h"
24#include <stdarg.h>
25#include <stdlib.h>
26#include <stdio.h>
27
28@EXT_INCLUDE_CODE@
29
30static zend_module_entry * const php_builtin_extensions[] = {
31@EXT_MODULE_PTRS@
32};
33
34#define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
35
36PHPAPI int php_register_internal_extensions(void)
37{
38	return php_register_extensions(php_builtin_extensions, EXTCOUNT);
39}
40