Coverage Report

Created: 2026-06-02 06:36

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/php-src/ext/standard/credits.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: Rasmus Lerdorf <rasmus@php.net>                             |
12
   |          Zeev Suraski <zeev@php.net>                                 |
13
   +----------------------------------------------------------------------+
14
*/
15
16
#include "php.h"
17
#include "info.h"
18
#include "SAPI.h"
19
20
0
#define CREDIT_LINE(module, authors) php_info_print_table_row(2, module, authors)
21
22
PHPAPI ZEND_COLD void php_print_credits(int flag) /* {{{ */
23
0
{
24
0
  if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) {
25
0
    php_print_info_htmlhead();
26
0
  }
27
28
0
  if (!sapi_module.phpinfo_as_text) {
29
0
    PUTS("<h1>PHP Credits</h1>\n");
30
0
  } else {
31
0
    PUTS("PHP Credits\n");
32
0
  }
33
34
0
  if (flag & PHP_CREDITS_GROUP) {
35
    /* Group */
36
37
0
    php_info_print_table_start();
38
0
    php_info_print_table_header(1, "PHP Group");
39
0
    php_info_print_table_row(1, "Thies C. Arntzen, Stig Bakken, Shane Caraveo, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski");
40
0
    php_info_print_table_end();
41
0
  }
42
43
0
  if (flag & PHP_CREDITS_GENERAL) {
44
    /* Design & Concept */
45
0
    php_info_print_table_start();
46
0
    if (!sapi_module.phpinfo_as_text) {
47
0
      php_info_print_table_header(1, "Language Design &amp; Concept");
48
0
    } else {
49
0
      php_info_print_table_header(1, "Language Design & Concept");
50
0
    }
51
0
    php_info_print_table_row(1, "Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger");
52
0
    php_info_print_table_end();
53
54
    /* PHP Language */
55
0
    php_info_print_table_start();
56
0
    php_info_print_table_colspan_header(2, "PHP Authors");
57
0
    php_info_print_table_header(2, "Contribution", "Authors");
58
0
    CREDIT_LINE("Zend Scripting Language Engine", "Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Marcus Boerger, Dmitry Stogov, Xinchen Hui, Nikita Popov");
59
0
    CREDIT_LINE("Extension Module API", "Andi Gutmans, Zeev Suraski, Andrei Zmievski");
60
0
    CREDIT_LINE("UNIX Build and Modularization", "Stig Bakken, Sascha Schumann, Jani Taskinen, Peter Kokot");
61
0
    CREDIT_LINE("Windows Support", "Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye, Anatol Belski, Kalle Sommer Nielsen");
62
0
    CREDIT_LINE("Server API (SAPI) Abstraction Layer", "Andi Gutmans, Shane Caraveo, Zeev Suraski");
63
0
    CREDIT_LINE("Streams Abstraction Layer", "Wez Furlong, Sara Golemon");
64
0
    CREDIT_LINE("PHP Data Objects Layer", "Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky");
65
0
    CREDIT_LINE("Output Handler", "Zeev Suraski, Thies C. Arntzen, Marcus Boerger, Michael Wallner");
66
0
    CREDIT_LINE("Consistent 64 bit support", "Anthony Ferrara, Anatol Belski");
67
0
    php_info_print_table_end();
68
0
  }
69
70
0
  if (flag & PHP_CREDITS_SAPI) {
71
    /* SAPI Modules */
72
73
0
    php_info_print_table_start();
74
0
    php_info_print_table_colspan_header(2, "SAPI Modules");
75
0
    php_info_print_table_header(2, "Contribution", "Authors");
76
0
#include "credits_sapi.h"
77
0
    php_info_print_table_end();
78
0
  }
79
80
0
  if (flag & PHP_CREDITS_MODULES) {
81
    /* Modules */
82
83
0
    php_info_print_table_start();
84
0
    php_info_print_table_colspan_header(2, "Module Authors");
85
0
    php_info_print_table_header(2, "Module", "Authors");
86
0
#include "credits_ext.h"
87
0
    php_info_print_table_end();
88
0
  }
89
90
0
  if (flag & PHP_CREDITS_DOCS) {
91
0
    php_info_print_table_start();
92
0
    php_info_print_table_colspan_header(2, "PHP Documentation");
93
0
    CREDIT_LINE("Authors", "Mehdi Achour, Friedhelm Betz, Antony Dovgal, Nuno Lopes, Hannes Magnusson, Philip Olson, Georg Richter, Damien Seguy, Jakub Vrana, Adam Harvey");
94
0
    CREDIT_LINE("Editor", "Peter Cowburn");
95
0
    CREDIT_LINE("User Note Maintainers", "Daniel P. Brown, Thiago Henrique Pojda");
96
0
    CREDIT_LINE("Other Contributors", "Previously active authors, editors and other contributors are listed in the manual.");
97
0
    php_info_print_table_end();
98
0
  }
99
100
0
  if (flag & PHP_CREDITS_QA) {
101
0
    php_info_print_table_start();
102
0
    php_info_print_table_header(1, "PHP Quality Assurance Team");
103
0
    php_info_print_table_row(1, "Ilia Alshanetsky, Joerg Behrens, Antony Dovgal, Stefan Esser, Moriyoshi Koizumi, Magnus Maatta, Sebastian Nohn, Derick Rethans, Melvyn Sopacua, Pierre-Alain Joye, Dmitry Stogov, Felipe Pena, David Soria Parra, Stanislav Malyshev, Julien Pauli, Stephen Zarkos, Anatol Belski, Remi Collet, Ferenc Kovacs");
104
0
    php_info_print_table_end();
105
0
  }
106
107
0
  if (flag & PHP_CREDITS_WEB) {
108
    /* Websites and infrastructure */
109
110
0
    php_info_print_table_start();
111
0
    php_info_print_table_colspan_header(2, "Websites and Infrastructure team");
112
    /* www., wiki., windows., master., and others, I guess pecl. too? */
113
0
    CREDIT_LINE("PHP Websites Team", "Rasmus Lerdorf, Hannes Magnusson, Philip Olson, Lukas Kahwe Smith, Pierre-Alain Joye, Kalle Sommer Nielsen, Peter Cowburn, Adam Harvey, Ferenc Kovacs, Levi Morrison");
114
0
    CREDIT_LINE("Event Maintainers", "Damien Seguy, Daniel P. Brown");
115
    /* Mirroring */
116
0
    CREDIT_LINE("Network Infrastructure", "Daniel P. Brown");
117
    /* Windows build boxes and such things */
118
0
    CREDIT_LINE("Windows Infrastructure", "Alex Schoenmaker");
119
0
    php_info_print_table_end();
120
0
  }
121
122
0
  if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) {
123
0
    PUTS("</div></body></html>\n");
124
0
  }
125
0
}
126
/* }}} */