Coverage Report

Created: 2026-06-02 06:36

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/php-src/main/internal_functions_cli.c
Line
Count
Source
1
/*
2
   +----------------------------------------------------------------------+
3
   | Copyright © The PHP Group and Contributors.                          |
4
   +----------------------------------------------------------------------+
5
   | This source file is subject to the Modified BSD License that is      |
6
   | bundled with this package in the file LICENSE, and is available      |
7
   | through the World Wide Web at <https://www.php.net/license/>.        |
8
   |                                                                      |
9
   | SPDX-License-Identifier: BSD-3-Clause                                |
10
   +----------------------------------------------------------------------+
11
   | Authors: Andi Gutmans <andi@php.net>                                 |
12
   |          Zeev Suraski <zeev@php.net>                                 |
13
   +----------------------------------------------------------------------+
14
 */
15
16
#include "php.h"
17
#include "php_main.h"
18
#include "zend_modules.h"
19
#include "zend_compile.h"
20
#include <stdarg.h>
21
#include <stdlib.h>
22
#include <stdio.h>
23
24
#include "ext/date/php_date.h"
25
#include "ext/pcre/php_pcre.h"
26
#include "ext/exif/php_exif.h"
27
#include "ext/hash/php_hash.h"
28
#include "ext/json/php_json.h"
29
#include "ext/lexbor/php_lexbor.h"
30
#include "ext/opcache/zend_accelerator_module.h"
31
#include "ext/random/php_random.h"
32
#include "ext/reflection/php_reflection.h"
33
#include "ext/spl/php_spl.h"
34
#include "ext/standard/php_standard.h"
35
#include "ext/uri/php_uri.h"
36
37
38
static zend_module_entry * const php_builtin_extensions[] = {
39
  phpext_date_ptr,
40
  phpext_pcre_ptr,
41
  phpext_exif_ptr,
42
  phpext_hash_ptr,
43
  phpext_json_ptr,
44
  phpext_lexbor_ptr,
45
  phpext_opcache_ptr,
46
  phpext_random_ptr,
47
  phpext_reflection_ptr,
48
  phpext_standard_ptr,
49
  phpext_spl_ptr,
50
  phpext_uri_ptr,
51
52
};
53
54
2
#define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
55
56
PHPAPI int php_register_internal_extensions(void)
57
2
{
58
2
  return php_register_extensions(php_builtin_extensions, EXTCOUNT);
59
2
}