Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
43 changes: 22 additions & 21 deletions license/2_01.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
============= An example PHP License, version 2.01 file ============

This is the original PHP License, version 2.01 which applies only to
very old versions of PHP software (such as versions 4.0RC2 and earlier).
This is the original PHP License, version 2.01, which applies only to
old versions of PHP software (such as versions 4.0RC2 and earlier).

This license is provided here for historical purposes only.
This license is provided for historical purposes only.

This license has been superseded by the PHP License, version 3.01,
available at <https://www.php.net/license/3_01.txt>. All new works
using the PHP License should use the PHP License, version 3.01.
This license has been superseded by the PHP License, version 4,
available at <https://www.php.net/license/>. The PHP License, version 4
is the Modified BSD License (BSD-3-Clause). All new works using the PHP
License should use the Modified BSD License.


--------------------------------------------------------------------
Expand All @@ -29,32 +30,32 @@ are met:

3. The name "PHP" must not be used to endorse or promote products
derived from this software without prior permission from the
PHP Group. This does not apply to add-on libraries or tools
that work in conjunction with PHP. In such a case the PHP
name may be used to indicate that the product supports PHP.
PHP Group. This does not apply to add-on libraries or tools
that work in conjunction with PHP. In such a case the PHP
name may be used to indicate that the product supports PHP.

4. The PHP Group may publish revised and/or new versions of the
license from time to time. Each version will be given a
distinguishing version number.
distinguishing version number.
Once covered code has been published under a particular version
of the license, you may always continue to use it under the
terms of that version. You may also choose to use such covered
code under the terms of any subsequent version of the license
published by the PHP Group. No one other than the PHP Group has
the right to modify the terms applicable to covered code created
under this License.
of the license, you may always continue to use it under the
terms of that version. You may also choose to use such covered
code under the terms of any subsequent version of the license
published by the PHP Group. No one other than the PHP Group has
the right to modify the terms applicable to covered code created
under this License.

5. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes PHP, freely available from
http://www.php.net/".
http://www.php.net/".

6. Permission to freely distribute and use Zend as an integrated
part of PHP is granted, under the conditions of version 0.91
of the Zend License.
The license is bundled with the Zend engine, and is available
at http://www.zend.com/license/0_91.txt, or by contacting
[email protected].
of the Zend License.
The license is bundled with the Zend engine, and is available
at http://www.zend.com/license/0_91.txt, or by contacting
[email protected].



Expand Down
13 changes: 7 additions & 6 deletions license/2_02.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
============= An example PHP License, version 2.02 file ============

This is the original PHP License, version 2.02 which applies only to
very old versions of PHP software (such as versions 4.2.2 and earlier).
This is the original PHP License, version 2.02, which applies only to
old versions of PHP software (such as versions 4.2.2 and earlier).

This license is provided here for historical purposes only.
This license is provided for historical purposes only.

This license has been superseded by the PHP License, version 3.01,
available at <https://www.php.net/license/3_01.txt>. All new works
using the PHP License should use the PHP License, version 3.01.
This license has been superseded by the PHP License, version 4,
available at <https://www.php.net/license/>. The PHP License, version 4
is the Modified BSD License (BSD-3-Clause). All new works using the PHP
License should use the Modified BSD License.


--------------------------------------------------------------------
Expand Down
16 changes: 9 additions & 7 deletions license/3_0.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
============= An example PHP License, version 3.0 file =============

This is the original PHP License, version 3.0 which applies only to
very old versions of PHP software (such as versions 5.1.1, 4.4.1, and
This is the original PHP License, version 3.0, which applies only to
old versions of PHP software (such as versions 5.1.1, 4.4.1, and
earlier).

The PHP License, version 3.0 is an Open Source Initiative approved
license, available at <https://opensource.org/licenses/PHP-3.0>.
The PHP License, version 3.0, is an Open Source Initiative approved
license, available at <https://opensource.org/license/php-3-0>. This
license is provided for historical purposes only.

This license has been superseded by the PHP License, version 3.01,
available at <https://www.php.net/license/3_01.txt>. All new works
using the PHP License should use the PHP License, version 3.01.
This license has been superseded by the PHP License, version 4,
available at <https://www.php.net/license/>. The PHP License, version 4
is the Modified BSD License (BSD-3-Clause). All new works using the PHP
License should use the Modified BSD License.


--------------------------------------------------------------------
Expand Down
17 changes: 16 additions & 1 deletion license/3_01.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
============= An example PHP License, version 3.01 file ============

This is the original PHP License, version 3.01, which applies only to
old versions of PHP software (such as versions 8.5 and earlier).

The PHP License, version 3.01, is an Open Source Initiative approved
license, available at <https://opensource.org/license/php-3-01>. This
license is provided for historical purposes only.

This license has been superseded by the PHP License, version 4,
available at <https://www.php.net/license/>. The PHP License, version 4
is the Modified BSD License (BSD-3-Clause). All new works using the PHP
License should use the Modified BSD License.


--------------------------------------------------------------------
The PHP License, version 3.01
Copyright (c) 1999 - 2019 The PHP Group. All rights reserved.
Copyright (c) 1999 - 2026 The PHP Group. All rights reserved.
--------------------------------------------------------------------

Redistribution and use in source and binary forms, with or without
Expand Down
27 changes: 27 additions & 0 deletions license/4_0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright © The PHP Group and Contributors.
Copyright © 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.
31 changes: 15 additions & 16 deletions license/contrib-guidelines-code.php
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
<?php
$_SERVER['BASE_PAGE'] = 'license/contrib-guidelines-code.php';
include_once __DIR__ . '/../include/prepend.inc';
site_header("License Information", ["current" => "help"]);
site_header("Contributor Guidelines for Code Developers", ["current" => "help"]);
?>
<h2>PHP Contributor Guidelines for Code Developers</h2>

<p>
Before you complete the form to request a Git account, you must understand and accept the principles under which PHP
itself is developed. These are summarised in the next paragraph.
itself is developed. These are summarized in the next paragraph.
</p>
<p>
Any code contributed to PHP must be contributed under the PHP license (or a compatible BSD-style license).
PHP will be redistributed under the PHP license (currently
<a href="http://www.php.net/license/3_01.txt">version 3.01</a>).
This includes implementation code, test cases, utility scripts and tools - that is, all code associated
with the PHP project. If you contribute code that isn't entirely your own
(for example it may be partially derived from other Open Source software) you are asked to add a comment
into the source code to indicate the origin and the license of the original code.
If you are unsure of the license you are asked to confirm with the owner of the code that they are
happy for it to be contributed to PHP under the PHP license.
Any code contributed to PHP must be contributed under the terms of the Modified BSD License or other compatible,
permissive BSD-style license. PHP is distributed under the <a href="/license/#bsd-3-clause">Modified BSD License</a>.
This includes implementation code, test cases, utility scripts and tools&mdash;that is, all code associated with the PHP
project. If you contribute code that isn't entirely your own (for example, it may be partially derived from other Open
Source software), you should add a comment to the source code indicating the origin and license of the original code.
If you are unsure of the license, you must confirm with the owner that they grant permission to contribute it to PHP
under the Modified BSD License.
</p>
<p>
Specifically regarding GPL and LGPL source code:
Specifically regarding source code licensed under the GNU General Public License (GPL) or GNU Lesser General Public
License (LGPL):
</p>
<ul>
<li>GPL or LGPL licensed code cannot be used as a basis for any derived work contributed to PHP.</li>
<li>Extensions which link GPL'd libraries will not be accepted.</li>
<li>Extensions which link to LGPL libraries will be strongly discouraged.</li>
<li>Extensions which link to GPL licensed libraries will not be accepted.</li>
<li>Extensions which link to LGPL licensed libraries are strongly discouraged.</li>
</ul>


Expand All @@ -36,8 +35,8 @@
For related projects, please refer to the Project websites:
</p>
<ul>
<li><a href="http://pecl.php.net/copyright.php">PECL</a></li>
<li><a href="http://pear.php.net/copyright.php">PEAR</a></li>
<li><a href="https://pecl.php.net/copyright.php">PECL</a></li>
<li><a href="https://pear.php.net/copyright.php">PEAR</a></li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PEAR server might possibly no longer exist by this Friday, and maybe we should just remove this section now? PECL also does no longer accept new packages either.

</ul>

<?php site_footer();
86 changes: 40 additions & 46 deletions license/distrib-guidelines-code.php
Original file line number Diff line number Diff line change
@@ -1,65 +1,59 @@
<?php
$_SERVER['BASE_PAGE'] = 'license/distrib-guidelines-code.php';
include_once __DIR__ . '/../include/prepend.inc';
site_header("License Information", ["current" => "help"]);
site_header("Code Distribution Guidelines", ["current" => "help"]);
?>
<h2>PHP Distribution Guidelines</h2>
<h2>PHP Code Distribution Guidelines</h2>

<p>
The PHP code can be redistributed in source or binary form provided that
the terms of the PHP license are respected (see
<a href="http://www.php.net/license/3_01.txt">version 3.01</a>).
The PHP code can be redistributed in source or binary form provided that
you respect the terms of the <a href="/license/#bsd-3-clause">license</a>.
</p>
<p>
In plain English, this means that you have to include the full license text
in human-readable form with every distributed copy of PHP, whether source
or binary. One way of doing this is to put a copy of the PHP license into a
text file that you include with the source or binary package before
distribution. This ensures that the license information can be read
properly even when a binary is shipped.
A text file containing license and copyright information is sometimes
given the filename "Notices", and may be referred to as a "Notices file".
In plain English, this means that you have to include the full license text
in human-readable form with every distributed copy of PHP, whether in source
or binary form. One way of doing this is to put a copy of the license in a
text file that you include with the source or binary package before distribution.
This ensures that the license information can be read properly even when a
binary is shipped instead of source code. A text file containing license and
copyright information is sometimes given the filename "Notice" or "NOTICE,"
and may be referred to as a "notice file."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: The , in "NOTICE," and the . in "notice file." should be outside the "'s

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those silly American style guides! 😉

I generally follow the MLA style guide in writing, but the APA style guide and AP stylebook also agree that commas and periods should be placed inside closing quotation marks.

However, I'm aware that British English generally places them outside closing quotation marks. Is it the style of php.net to follow the British style?

</p>
<p>
Some files in the PHP codebase have been contributed under other licenses.
If you want to distribute these files, you also need to respect the terms
of those licenses.
To check, look for the terms indicated in the license + copyright comment
block at the top of the source file.
Some files in the PHP codebase have been contributed under other licenses.
If you want to distribute these files, you must also respect the terms of
their licenses. Look for the terms in the license/copyright comment block at
the top of the source file. Sometimes the license terms are included in a
separate license file in the same directory as the source file. The license
terms may require that its own license and copyright information be included
with every distributed copy (including binaries). This is a common requirement,
which may be satisfied by adding the appropriate license text to a text file
for distribution purposes, like the notice file suggested above.
</p>
<p>
The license terms for such a file may require that its own license and copyright
information must be included with every distributed copy (including binaries).
This is quite a common requirement, which can be satisfied by adding the
appropriate license text into a text file for distribution purposes, like the
"Notices"-type of file suggested above.
</p>
<p>
A single "Notices" file could be used to hold the collection of license
and copyright information that applies to PHP in general (the PHP license) and
any files with additional licenses that you want to distribute (for example
Zend, TSRM etc.)
It is good practice to indicate which source file(s) a particular license
applies to.
A single notice file may list all the licenses and copyright information
applicable to the entire codebase you are distributing. It is good practice to
indicate which source file(s) a particular license applies to.
</p>

<h3>Modified products derived from PHP</h3>

<p>
You may distribute your own software product derived from PHP, in source or
binary form, provided that relevant copyright information and license(s) from
the PHP codebase are distributed in human-readable form with every copy, as
described above.
</p>
<p>
In accordance with the <a href="/license/#bsd-3-clause">license</a>, you may
not use the name of any copyright holders or contributors to endorse or
promote products derived from PHP without specific prior written permission.
</p>
<p>
You can distribute your own software product which has been derived
from PHP, in source or binary form, provided that:
Please do not use "PHP" in the names of products derived from PHP. This
creates confusion and implies a relationship between your product and the PHP
project that may not exist. However, you may indicate that your product works
with, is compatible with, or is intended for use with PHP.
</p>
<ul>
<li>
relevant copyright information and license(s) from
the PHP codebase are distributed in human-readable form with
every copy, as described above.
</li>
<li>
you don't use the name "PHP" without permission, either
to promote your own product or within your product's name
(see clauses #3 and #4 in the PHP license
<a href="http://www.php.net/license/3_01.txt">version 3.01</a>).
</li>
</ul>

<?php site_footer();
Loading
Loading