Commit 7fd4d3aa93c for php.net

commit 7fd4d3aa93cdaca1b65da28daac26a70bd6c8545
Author: Ben Ramsey <ramsey@php.net>
Date:   Sat Jun 28 13:29:50 2025 -0500

    license-update: update phpinfo() license statements

    RFC: https://wiki.php.net/rfc/php_license_update

diff --git a/ext/standard/info.c b/ext/standard/info.c
index 90d882c15d3..1c85443bc53 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -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");
 		}
 	}

diff --git a/ext/standard/tests/general_functions/phpinfo.phpt b/ext/standard/tests/general_functions/phpinfo.phpt
index ac7cabd340d..a7503ec0bc4 100644
--- a/ext/standard/tests/general_functions/phpinfo.phpt
+++ b/ext/standard/tests/general_functions/phpinfo.phpt
@@ -57,7 +57,7 @@
 %r(.*?)%r
 PHP Variables
 %r(.*?)%r
-PHP License
+License
 %r(.*?)%r
 bool(true)
 --
@@ -66,6 +66,6 @@
 --
 phpinfo()

-PHP License
+License
 %r(.+?)%r
 bool(true)
diff --git a/sapi/cli/tests/019.phpt b/sapi/cli/tests/019.phpt
index 481ea2228b3..670f1e921de 100644
--- a/sapi/cli/tests/019.phpt
+++ b/sapi/cli/tests/019.phpt
@@ -21,16 +21,37 @@
 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