xref: /PHP-7.3/ext/standard/credits.c (revision 9afce019)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 7                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2018 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: Rasmus Lerdorf <rasmus@php.net>                             |
16    |          Zeev Suraski <zeev@php.net>                                 |
17    +----------------------------------------------------------------------+
18 */
19 
20 #include "php.h"
21 #include "info.h"
22 #include "SAPI.h"
23 
24 #define CREDIT_LINE(module, authors) php_info_print_table_row(2, module, authors)
25 
php_print_credits(int flag)26 PHPAPI void php_print_credits(int flag) /* {{{ */
27 {
28 	if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) {
29 		php_print_info_htmlhead();
30 	}
31 
32 	if (!sapi_module.phpinfo_as_text) {
33 		PUTS("<h1>PHP Credits</h1>\n");
34 	} else {
35 		PUTS("PHP Credits\n");
36 	}
37 
38 	if (flag & PHP_CREDITS_GROUP) {
39 		/* Group */
40 
41 		php_info_print_table_start();
42 		php_info_print_table_header(1, "PHP Group");
43 		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");
44 		php_info_print_table_end();
45 	}
46 
47 	if (flag & PHP_CREDITS_GENERAL) {
48 		/* Design & Concept */
49 		php_info_print_table_start();
50 		if (!sapi_module.phpinfo_as_text) {
51 			php_info_print_table_header(1, "Language Design &amp; Concept");
52 		} else {
53 			php_info_print_table_header(1, "Language Design & Concept");
54 		}
55 		php_info_print_table_row(1, "Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger");
56 		php_info_print_table_end();
57 
58 		/* PHP Language */
59 		php_info_print_table_start();
60 		php_info_print_table_colspan_header(2, "PHP Authors");
61 		php_info_print_table_header(2, "Contribution", "Authors");
62 		CREDIT_LINE("Zend Scripting Language Engine", "Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Marcus Boerger, Dmitry Stogov, Xinchen Hui, Nikita Popov");
63 		CREDIT_LINE("Extension Module API", "Andi Gutmans, Zeev Suraski, Andrei Zmievski");
64 		CREDIT_LINE("UNIX Build and Modularization", "Stig Bakken, Sascha Schumann, Jani Taskinen");
65 		CREDIT_LINE("Windows Support", "Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye, Anatol Belski, Kalle Sommer Nielsen");
66 		CREDIT_LINE("Server API (SAPI) Abstraction Layer", "Andi Gutmans, Shane Caraveo, Zeev Suraski");
67 		CREDIT_LINE("Streams Abstraction Layer", "Wez Furlong, Sara Golemon");
68 		CREDIT_LINE("PHP Data Objects Layer", "Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky");
69 		CREDIT_LINE("Output Handler", "Zeev Suraski, Thies C. Arntzen, Marcus Boerger, Michael Wallner");
70 		CREDIT_LINE("Consistent 64 bit support", "Anthony Ferrara, Anatol Belski");
71 		php_info_print_table_end();
72 	}
73 
74 	if (flag & PHP_CREDITS_SAPI) {
75 		/* SAPI Modules */
76 
77 		php_info_print_table_start();
78 		php_info_print_table_colspan_header(2, "SAPI Modules");
79 		php_info_print_table_header(2, "Contribution", "Authors");
80 #include "credits_sapi.h"
81 		php_info_print_table_end();
82 	}
83 
84 	if (flag & PHP_CREDITS_MODULES) {
85 		/* Modules */
86 
87 		php_info_print_table_start();
88 		php_info_print_table_colspan_header(2, "Module Authors");
89 		php_info_print_table_header(2, "Module", "Authors");
90 #include "credits_ext.h"
91 		php_info_print_table_end();
92 	}
93 
94 	if (flag & PHP_CREDITS_DOCS) {
95 		php_info_print_table_start();
96 		php_info_print_table_colspan_header(2, "PHP Documentation");
97 		CREDIT_LINE("Authors", "Mehdi Achour, Friedhelm Betz, Antony Dovgal, Nuno Lopes, Hannes Magnusson, Philip Olson, Georg Richter, Damien Seguy, Jakub Vrana, Adam Harvey");
98 		CREDIT_LINE("Editor", "Peter Cowburn");
99 		CREDIT_LINE("User Note Maintainers", "Daniel P. Brown, Thiago Henrique Pojda");
100 		CREDIT_LINE("Other Contributors", "Previously active authors, editors and other contributors are listed in the manual.");
101 		php_info_print_table_end();
102 	}
103 
104 	if (flag & PHP_CREDITS_QA) {
105 		php_info_print_table_start();
106 		php_info_print_table_header(1, "PHP Quality Assurance Team");
107 		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");
108 		php_info_print_table_end();
109 	}
110 
111 	if (flag & PHP_CREDITS_WEB) {
112 		/* Websites and infrastructure */
113 
114 		php_info_print_table_start();
115 		php_info_print_table_colspan_header(2, "Websites and Infrastructure team");
116 		/* www., wiki., windows., master., and others, I guess pecl. too? */
117 		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");
118 		CREDIT_LINE("Event Maintainers", "Damien Seguy, Daniel P. Brown");
119 		/* Mirroring */
120 		CREDIT_LINE("Network Infrastructure", "Daniel P. Brown");
121 		/* Windows build boxes and such things */
122 		CREDIT_LINE("Windows Infrastructure", "Alex Schoenmaker");
123 		php_info_print_table_end();
124 	}
125 
126 	if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) {
127 		PUTS("</div></body></html>\n");
128 	}
129 }
130 /* }}} */
131 
132 /*
133  * Local variables:
134  * tab-width: 4
135  * c-basic-offset: 4
136  * End:
137  * vim600: sw=4 ts=4 fdm=marker
138  * vim<600: sw=4 ts=4
139  */
140