mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
1ad08256f3
This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
48 lines
2.2 KiB
Plaintext
48 lines
2.2 KiB
Plaintext
The OpenLDAP Public License
|
|
Version 2.8, 17 August 2003
|
|
|
|
Redistribution and use of this software and associated documentation
|
|
("Software"), with or without modification, are permitted provided
|
|
that the following conditions are met:
|
|
|
|
1. Redistributions in source form must retain copyright statements
|
|
and notices,
|
|
|
|
2. Redistributions in binary form must reproduce applicable copyright
|
|
statements and notices, this list of conditions, and the following
|
|
disclaimer in the documentation and/or other materials provided
|
|
with the distribution, and
|
|
|
|
3. Redistributions must contain a verbatim copy of this document.
|
|
|
|
The OpenLDAP Foundation may revise this license from time to time.
|
|
Each revision is distinguished by a version number. You may use
|
|
this Software under terms of this license revision or under the
|
|
terms of any subsequent revision of the license.
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE OPENLDAP FOUNDATION AND ITS
|
|
CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED 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 OPENLDAP FOUNDATION, ITS CONTRIBUTORS, OR THE AUTHOR(S)
|
|
OR OWNER(S) OF THE SOFTWARE 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.
|
|
|
|
The names of the authors and copyright holders must not be used in
|
|
advertising or otherwise to promote the sale, use or other dealing
|
|
in this Software without specific, written prior permission. Title
|
|
to copyright in this Software shall at all times remain with copyright
|
|
holders.
|
|
|
|
OpenLDAP is a registered trademark of the OpenLDAP Foundation.
|
|
|
|
Copyright 1999-2003 The OpenLDAP Foundation, Redwood City,
|
|
California, USA. All Rights Reserved. Permission to copy and
|
|
distribute verbatim copies of this document is granted.
|