Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
9ae0972
license-update: ext/bcmath source headers
ramsey Jun 28, 2025
b88561b
license-update: ext/bz2 source headers
ramsey Jun 28, 2025
193beb5
license-update: ext/calendar source headers
ramsey Jun 28, 2025
6f3f96f
license-update: ext/com_dotnet source headers
ramsey Jun 28, 2025
a1dd73c
license-update: ext/ctype source headers
ramsey Jun 28, 2025
8ba5bce
license-update: ext/curl source headers
ramsey Jun 28, 2025
2c08316
license-update: ext/date source headers
ramsey Jun 28, 2025
de25aa8
license-update: ext/dba source headers
ramsey Jun 28, 2025
81c5d48
license-update: ext/dl_test source headers
ramsey Jun 28, 2025
089eda0
license-update: ext/dom source headers
ramsey Jun 28, 2025
967024f
license-update: ext/enchant source headers
ramsey Jun 28, 2025
8eb5448
license-update: ext/exif source headers
ramsey Jun 28, 2025
a9efdfd
license-update: ext/ffi source headers
ramsey Jun 28, 2025
fc2dc45
license-update: ext/fileinfo source headers
ramsey Jun 28, 2025
207b153
license-update: ext/filter source headers
ramsey Jun 28, 2025
219dd00
license-update: ext/ftp source headers
ramsey Jun 28, 2025
f53a060
license-update: ext/gd source headers
ramsey Jun 28, 2025
d75c652
license-update: ext/gettext source headers
ramsey Jun 28, 2025
3457aac
license-update: ext/gmp source headers
ramsey Jun 28, 2025
b81eef1
license-update: ext/hash source headers
ramsey Jun 28, 2025
afa3ec2
license-update: ext/iconv source headers
ramsey Jun 28, 2025
20542bc
license-update: ext/intl source headers
ramsey Jun 28, 2025
94aecba
license-update: ext/json source headers
ramsey Jun 28, 2025
3ad8aeb
license-update: ext/ldap source headers
ramsey Jun 28, 2025
ce3de9a
license-update: ext/lexbor source headers
ramsey Jun 28, 2025
0cdee7f
license-update: ext/libxml source headers
ramsey Jun 28, 2025
5c0405a
license-update: ext/mbstring source headers
ramsey Jun 28, 2025
a886e4f
license-update: ext/mysqli source headers
ramsey Jun 28, 2025
0c56e40
license-update: ext/mysqlnd source headers
ramsey Jun 28, 2025
156568e
license-update: ext/odbc source headers
ramsey Jun 28, 2025
6e0cb09
license-update: ext/opcache source headers
ramsey Jun 28, 2025
6723a00
license-update: ext/openssl source headers
ramsey Jun 28, 2025
6d2b0e6
license-update: ext/pcntl source headers
ramsey Jun 28, 2025
be7650d
license-update: ext/pcre source headers
ramsey Jun 28, 2025
9706a2d
license-update: ext/pdo source headers
ramsey Jun 28, 2025
fd82723
license-update: ext/pdo_dblib source headers
ramsey Jun 28, 2025
0dc4316
license-update: ext/pdo_firebird source headers
ramsey Jun 28, 2025
d0aacd1
license-update: ext/pdo_mysql source headers
ramsey Jun 28, 2025
4d5feb9
license-update: ext/pdo_odbc source headers
ramsey Jun 28, 2025
5013bf0
license-update: ext/pdo_pgsql source headers
ramsey Jun 28, 2025
3c81fd5
license-update: ext/pdo_sqlite source headers
ramsey Jun 28, 2025
23853df
license-update: ext/pgsql source headers
ramsey Jun 28, 2025
0fed44d
license-update: ext/phar source headers
ramsey Jun 28, 2025
82e2e9e
license-update: ext/posix source headers
ramsey Jun 28, 2025
6b42d03
license-update: ext/random source headers
ramsey Jun 28, 2025
a2aa44d
license-update: ext/readline source headers
ramsey Jun 28, 2025
92bc272
license-update: ext/reflection source headers
ramsey Jun 28, 2025
acd1469
license-update: ext/session source headers
ramsey Jun 28, 2025
6770b6d
license-update: ext/shmop source headers
ramsey Jun 28, 2025
9e18215
license-update: ext/simplexml source headers
ramsey Jun 28, 2025
34681c8
license-update: ext/snmp source headers
ramsey Jun 28, 2025
37d63c2
license-update: ext/soap source headers
ramsey Jun 28, 2025
be9eb30
license-update: ext/sockets source headers
ramsey Jun 28, 2025
2d12d29
license-update: ext/sodium source headers
ramsey Jun 28, 2025
9a1ad5d
license-update: ext/spl source headers
ramsey Jun 28, 2025
6608be6
license-update: ext/sqlite3 source headers
ramsey Jun 28, 2025
28c5922
license-update: ext/standard source headers
ramsey Jun 28, 2025
36a9152
license-update: ext/sysvmsg source headers
ramsey Jun 28, 2025
4921759
license-update: ext/sysvsem source headers
ramsey Jun 28, 2025
66c2e73
license-update: ext/sysvshm source headers
ramsey Jun 28, 2025
0359b9b
license-update: ext/tidy source headers
ramsey Jun 28, 2025
0693cb2
license-update: ext/tokenizer source headers
ramsey Jun 28, 2025
1ae7e82
license-update: ext/uri source headers
ramsey Jun 28, 2025
3274ea3
license-update: ext/xml source headers
ramsey Jun 28, 2025
ce391b3
license-update: ext/xmlreader source headers
ramsey Jun 28, 2025
6afff11
license-update: ext/xmlwriter source headers
ramsey Jun 28, 2025
4777569
license-update: ext/xsl source headers
ramsey Jun 28, 2025
4675241
license-update: ext/zend_test source headers
ramsey Jun 28, 2025
69875bf
license-update: ext/zip source headers
ramsey Jun 28, 2025
e99d36c
license-update: ext/zlib source headers
ramsey Jun 28, 2025
c157075
license-update: ext_skel.php source headers
ramsey Jun 28, 2025
ace6c87
license-update: main/streams source headers
ramsey Jun 28, 2025
66e7e18
license-update: main source headers
ramsey Jun 28, 2025
11c3895
license-update: sapi/apache2handler source headers
ramsey Jun 28, 2025
bb0d3f0
license-update: sapi/cgi source headers
ramsey Jun 28, 2025
816957b
license-update: sapi/cli source headers
ramsey Jun 28, 2025
76f47a5
license-update: sapi/embed source headers
ramsey Jun 28, 2025
7f2e8d1
license-update: sapi/fpm source headers
ramsey Jun 28, 2025
46fd728
license-update: sapi/fuzzer source headers
ramsey Jun 28, 2025
559d966
license-update: sapi/litespeed source headers
ramsey Jun 28, 2025
51709f5
license-update: sapi/phpdbg source headers
ramsey Jun 28, 2025
3360417
license-update: scripts source headers
ramsey Jun 28, 2025
7e03b4d
license-update: TSRM source headers
ramsey Jun 28, 2025
63a4ebe
license-update: win32 source headers
ramsey Jun 28, 2025
f1c439e
license-update: Zend/Optimizer source headers
ramsey Jun 28, 2025
5844660
license-update: Zend source headers
ramsey Jun 28, 2025
d23fd42
license-update: run-tests.php source headers
ramsey Jun 28, 2025
48dbd24
license-update: docs source headers
ramsey Jun 28, 2025
ccfb6aa
license-update: version info output
ramsey Jun 28, 2025
54bec10
license-update: update phpinfo() license statements
ramsey Jun 28, 2025
6d0f0b1
license-update: man pages
ramsey Jun 28, 2025
86f1696
license-update: LICENSE files
ramsey Jun 28, 2025
57d17e5
license-update: configure message
ramsey Jun 28, 2025
4a629af
license-update: README and CONTRIBUTING docs
ramsey Jun 28, 2025
3e024f1
license-update: license info for mysqlnd plugin
ramsey Jun 28, 2025
cc5fa4f
license-update: remove copyright years from info output
ramsey Jan 11, 2026
fe07b97
license-update: update Zend copyright name
ramsey Feb 5, 2026
8af8bca
license-update: revise license statement in phpinfo
ramsey Feb 5, 2026
b1181ec
license-update: update license header in ext/intl/rangeformatter sources
ramsey Apr 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
license-update: update phpinfo() license statements
  • Loading branch information
ramsey committed Apr 12, 2026
commit 54bec10f375b5cdffa9af5446627477b4de908da
82 changes: 62 additions & 20 deletions ext/standard/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -1019,35 +1019,77 @@ PHPAPI ZEND_COLD void php_print_info(int flag)

if (flag & PHP_INFO_LICENSE) {
if (!sapi_module.phpinfo_as_text) {
SECTION("PHP License");
SECTION("License");
php_info_print_box_start(0);
php_info_print("<p>\n");
php_info_print("This program is free software; you can redistribute it and/or modify ");
php_info_print("it under the terms of the PHP License as published by the PHP Group ");
php_info_print("and included in the distribution in the file: LICENSE\n");
php_info_print("PHP is free software: you can redistribute it and/or modify it under the ");
php_info_print("terms of the Modified BSD License (SPDX-License-Identifier: BSD-3-Clause):\n");
php_info_print("</p>\n");
php_info_print("<p>");
php_info_print("This program is distributed in the hope that it will be useful, ");
php_info_print("but WITHOUT ANY WARRANTY; without even the implied warranty of ");
php_info_print("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n");
php_info_print("<p>\n");
php_info_print("Copyright &copy; 1999–2025, The PHP Group and Contributors.<br>\n");
php_info_print("Copyright &copy; 1999–2025, Zend by Perforce.\n");
php_info_print("</p>\n");
php_info_print("<p>");
php_info_print("If you did not receive a copy of the PHP license, or have any questions about ");
php_info_print("PHP licensing, please contact license@php.net.\n");
php_info_print("<p>\n");
php_info_print("Redistribution and use in source and binary forms, with or without ");
php_info_print("modification, are permitted provided that the following conditions are met:\n");
php_info_print("</p>\n");
php_info_print("<ol>\n");
php_info_print("<li>Redistributions of source code must retain the above copyright notice, this ");
php_info_print("list of conditions and the following disclaimer.</li>\n");
php_info_print("<li>Redistributions in binary form must reproduce the above copyright notice, ");
php_info_print("this list of conditions and the following disclaimer in the documentation ");
php_info_print("and/or other materials provided with the distribution.</li>\n");
php_info_print("<li>Neither the name of the copyright holder nor the names of its ");
php_info_print("contributors may be used to endorse or promote products derived from ");
php_info_print("this software without specific prior written permission.</li>\n");
php_info_print("</ol>\n");
php_info_print("<p>\n");
php_info_print("THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" ");
php_info_print("AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ");
php_info_print("IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ");
php_info_print("DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE ");
php_info_print("FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ");
php_info_print("DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ");
php_info_print("SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ");
php_info_print("CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ");
php_info_print("OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ");
php_info_print("OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n");
php_info_print("</p>\n");
php_info_print_box_end();
} else {
php_info_print("\nPHP License\n");
php_info_print("This program is free software; you can redistribute it and/or modify\n");
php_info_print("it under the terms of the PHP License as published by the PHP Group\n");
php_info_print("and included in the distribution in the file: LICENSE\n");
php_info_print("\n");
php_info_print("This program is distributed in the hope that it will be useful,\n");
php_info_print("but WITHOUT ANY WARRANTY; without even the implied warranty of\n");
php_info_print("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n");
php_info_print("License\n");
php_info_print("\n");
php_info_print("PHP is free software: you can redistribute it and/or modify it under the\n");
php_info_print("terms of the Modified BSD License (SPDX-License-Identifier: BSD-3-Clause):\n");
php_info_print("\n");
php_info_print("Copyright © 1999–2025, The PHP Group and Contributors.\n");
php_info_print("Copyright © 1999–2025, Zend by Perforce.\n");
php_info_print("\n");
php_info_print("Redistribution and use in source and binary forms, with or without\n");
php_info_print("modification, are permitted provided that the following conditions are met:\n");
php_info_print("\n");
php_info_print("1. Redistributions of source code must retain the above copyright notice, this\n");
php_info_print(" list of conditions and the following disclaimer.\n");
php_info_print("\n");
php_info_print("2. Redistributions in binary form must reproduce the above copyright notice,\n");
php_info_print(" this list of conditions and the following disclaimer in the documentation\n");
php_info_print(" and/or other materials provided with the distribution.\n");
php_info_print("\n");
php_info_print("3. Neither the name of the copyright holder nor the names of its\n");
php_info_print(" contributors may be used to endorse or promote products derived from\n");
php_info_print(" this software without specific prior written permission.\n");
php_info_print("\n");
php_info_print("If you did not receive a copy of the PHP license, or have any\n");
php_info_print("questions about PHP licensing, please contact license@php.net.\n");
php_info_print("THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n");
php_info_print("AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n");
php_info_print("IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n");
php_info_print("DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n");
php_info_print("FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n");
php_info_print("DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n");
php_info_print("SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n");
php_info_print("CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n");
php_info_print("OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n");
php_info_print("OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n");
}
}

Expand Down
4 changes: 2 additions & 2 deletions ext/standard/tests/general_functions/phpinfo.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Environment
%r(.*?)%r
PHP Variables
%r(.*?)%r
PHP License
License
%r(.*?)%r
bool(true)
--
Expand All @@ -66,6 +66,6 @@ bool(true)
--
phpinfo()

PHP License
License
%r(.+?)%r
bool(true)
39 changes: 30 additions & 9 deletions sapi/cli/tests/019.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,37 @@ echo "\nDone\n";
phpinfo()
PHP Version => %s
%a
PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file: LICENSE
License

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
PHP is free software: you can redistribute it and/or modify it under the
terms of the Modified BSD License (SPDX-License-Identifier: BSD-3-Clause):

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.
Copyright © 1999–2025, The PHP Group and Contributors.
Copyright © 1999–2025, Zend by Perforce.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Done