Coverage Report

Created: 2026-02-14 06:52

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 (c) The PHP Group                                          |
4
   +----------------------------------------------------------------------+
5
   | This source file is subject to version 3.01 of the PHP license,      |
6
   | that is bundled with this package in the file LICENSE, and is        |
7
   | available through the world-wide-web at the following url:           |
8
   | https://www.php.net/license/3_01.txt                                 |
9
   | If you did not receive a copy of the PHP license and are unable to   |
10
   | obtain it through the world-wide-web, please send a note to          |
11
   | license@php.net so we can mail you a copy immediately.               |
12
   +----------------------------------------------------------------------+
13
   | Authors: Rasmus Lerdorf <rasmus@php.net>                             |
14
   |          Zeev Suraski <zeev@php.net>                                 |
15
   +----------------------------------------------------------------------+
16
*/
17
18
#include "php.h"
19
#include "info.h"
20
#include "SAPI.h"
21
22
360
#define CREDIT_LINE(module, authors) php_info_print_table_row(2, module, authors)
23
24
PHPAPI ZEND_COLD void php_print_credits(int flag) /* {{{ */
25
4
{
26
4
  if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) {
27
0
    php_print_info_htmlhead();
28
0
  }
29
30
4
  if (!sapi_module.phpinfo_as_text) {
31
0
    PUTS("<h1>PHP Credits</h1>\n");
32
4
  } else {
33
4
    PUTS("PHP Credits\n");
34
4
  }
35
36
4
  if (flag & PHP_CREDITS_GROUP) {
37
    /* Group */
38
39
4
    php_info_print_table_start();
40
4
    php_info_print_table_header(1, "PHP Group");
41
4
    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");
42
4
    php_info_print_table_end();
43
4
  }
44
45
4
  if (flag & PHP_CREDITS_GENERAL) {
46
    /* Design & Concept */
47
4
    php_info_print_table_start();
48
4
    if (!sapi_module.phpinfo_as_text) {
49
0
      php_info_print_table_header(1, "Language Design &amp; Concept");
50
4
    } else {
51
4
      php_info_print_table_header(1, "Language Design & Concept");
52
4
    }
53
4
    php_info_print_table_row(1, "Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger");
54
4
    php_info_print_table_end();
55
56
    /* PHP Language */
57
4
    php_info_print_table_start();
58
4
    php_info_print_table_colspan_header(2, "PHP Authors");
59
4
    php_info_print_table_header(2, "Contribution", "Authors");
60
4
    CREDIT_LINE("Zend Scripting Language Engine", "Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Marcus Boerger, Dmitry Stogov, Xinchen Hui, Nikita Popov");
61
4
    CREDIT_LINE("Extension Module API", "Andi Gutmans, Zeev Suraski, Andrei Zmievski");
62
4
    CREDIT_LINE("UNIX Build and Modularization", "Stig Bakken, Sascha Schumann, Jani Taskinen, Peter Kokot");
63
4
    CREDIT_LINE("Windows Support", "Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye, Anatol Belski, Kalle Sommer Nielsen");
64
4
    CREDIT_LINE("Server API (SAPI) Abstraction Layer", "Andi Gutmans, Shane Caraveo, Zeev Suraski");
65
4
    CREDIT_LINE("Streams Abstraction Layer", "Wez Furlong, Sara Golemon");
66
4
    CREDIT_LINE("PHP Data Objects Layer", "Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky");
67
4
    CREDIT_LINE("Output Handler", "Zeev Suraski, Thies C. Arntzen, Marcus Boerger, Michael Wallner");
68
4
    CREDIT_LINE("Consistent 64 bit support", "Anthony Ferrara, Anatol Belski");
69
4
    php_info_print_table_end();
70
4
  }
71
72
4
  if (flag & PHP_CREDITS_SAPI) {
73
    /* SAPI Modules */
74
75
4
    php_info_print_table_start();
76
4
    php_info_print_table_colspan_header(2, "SAPI Modules");
77
4
    php_info_print_table_header(2, "Contribution", "Authors");
78
4
#include "credits_sapi.h"
79
4
    php_info_print_table_end();
80
4
  }
81
82
4
  if (flag & PHP_CREDITS_MODULES) {
83
    /* Modules */
84
85
4
    php_info_print_table_start();
86
4
    php_info_print_table_colspan_header(2, "Module Authors");
87
4
    php_info_print_table_header(2, "Module", "Authors");
88
4
#include "credits_ext.h"
89
4
    php_info_print_table_end();
90
4
  }
91
92
4
  if (flag & PHP_CREDITS_DOCS) {
93
4
    php_info_print_table_start();
94
4
    php_info_print_table_colspan_header(2, "PHP Documentation");
95
4
    CREDIT_LINE("Authors", "Mehdi Achour, Friedhelm Betz, Antony Dovgal, Nuno Lopes, Hannes Magnusson, Philip Olson, Georg Richter, Damien Seguy, Jakub Vrana, Adam Harvey");
96
4
    CREDIT_LINE("Editor", "Peter Cowburn");
97
4
    CREDIT_LINE("User Note Maintainers", "Daniel P. Brown, Thiago Henrique Pojda");
98
4
    CREDIT_LINE("Other Contributors", "Previously active authors, editors and other contributors are listed in the manual.");
99
4
    php_info_print_table_end();
100
4
  }
101
102
4
  if (flag & PHP_CREDITS_QA) {
103
4
    php_info_print_table_start();
104
4
    php_info_print_table_header(1, "PHP Quality Assurance Team");
105
4
    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");
106
4
    php_info_print_table_end();
107
4
  }
108
109
4
  if (flag & PHP_CREDITS_WEB) {
110
    /* Websites and infrastructure */
111
112
4
    php_info_print_table_start();
113
4
    php_info_print_table_colspan_header(2, "Websites and Infrastructure team");
114
    /* www., wiki., windows., master., and others, I guess pecl. too? */
115
4
    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");
116
4
    CREDIT_LINE("Event Maintainers", "Damien Seguy, Daniel P. Brown");
117
    /* Mirroring */
118
4
    CREDIT_LINE("Network Infrastructure", "Daniel P. Brown");
119
    /* Windows build boxes and such things */
120
4
    CREDIT_LINE("Windows Infrastructure", "Alex Schoenmaker");
121
4
    php_info_print_table_end();
122
4
  }
123
124
4
  if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) {
125
0
    PUTS("</div></body></html>\n");
126
0
  }
127
4
}
128
/* }}} */