Go to file
Peter Kokot f1d7e3ca0b Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

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
2018-10-15 04:31:31 +02:00
appveyor Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
build Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
ext Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
main Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
pear Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
sapi Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
scripts Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
tests Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
travis Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
TSRM Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
win32 Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
Zend Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
.appveyor.yml Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
.editorconfig Update .editorconfig with some more configs 2017-10-19 11:53:37 +01:00
.gdbinit Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
.gitattributes Remove ident gitattribute for ext/zip/php_zip.c 2017-10-03 07:14:50 +01:00
.gitignore Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
.travis.yml Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
acinclude.m4 Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
buildconf Use modern autotools name of configure.ac instead of configure.in 2017-01-27 06:07:40 +00:00
buildconf.bat Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
CODING_STANDARDS Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
config.guess Update config.guess and config.sub 2014-12-04 17:56:20 +00:00
config.sub Remove Netware support 2016-11-12 11:20:01 +01:00
configure.ac Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
CONTRIBUTING.md Update CONTRIBUTING 2017-04-02 13:45:08 +02:00
CREDITS
EXTENSIONS Merge branch 'PHP-7.1' into PHP-7.2 2018-02-23 17:57:57 -08:00
footer Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
genfiles Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
header year++ 2018-01-02 12:55:14 +08:00
INSTALL remove description for apache 1.3 2016-04-05 12:13:38 +02:00
LICENSE Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
ltmain.sh - Upgraded bundled libtool to 1.5.26 2009-11-23 21:54:21 +00:00
makedist Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
Makefile.frag Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
Makefile.gcov Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
Makefile.global Fix bug 76595: Update phpdbg man page 2018-08-04 06:34:40 +02:00
NEWS Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
php7.spec.in Replaces php5 with php7, without whitespace changes. 2014-09-20 10:01:44 +02:00
php.gif
php.ini-development Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
php.ini-production Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
README.EXT_SKEL Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
README.GIT-RULES Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
README.input_filter Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
README.MAILINGLIST_RULES - mention rfc 1855 2008-01-17 14:37:58 +00:00
README.md Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
README.NEW-OUTPUT-API Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
README.PARAMETER_PARSING_API Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
README.REDIST.BINS Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
README.RELEASE_PROCESS Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
README.SELF-CONTAINED-EXTENSIONS Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
README.STREAMS Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
README.SUBMITTING_PATCH Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
README.TESTING Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
README.TESTING2 Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
README.UNIX-BUILD-SYSTEM Replaces php5 with php7, without whitespace changes. 2014-09-20 10:01:44 +02:00
README.WIN32-BUILD-SYSTEM Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
run-tests.php Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
server-tests-config.php Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
server-tests.php Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
snapshot
stamp-h.in
UPGRADING Sync leading and final newlines in source code files 2018-10-14 12:51:01 +02:00
UPGRADING.INTERNALS Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
vcsclean Support "git worktree" 2016-08-11 08:08:26 +09:00

The PHP Interpreter

This is the github mirror of the official PHP repository located at http://git.php.net.

Build Status Build status

Pull Requests

PHP accepts pull requests via github. Discussions are done on github, but depending on the topic can also be relayed to the official PHP developer mailing list internals@lists.php.net.

New features require an RFC and must be accepted by the developers. See https://wiki.php.net/rfc and https://wiki.php.net/rfc/voting for more information on the process.

Bug fixes do not require an RFC, but require a bugtracker ticket. Always open a ticket at https://bugs.php.net and reference the bug id using #NNNNNN.

Fix #55371: get_magic_quotes_gpc() throws deprecation warning

After removing magic quotes, the get_magic_quotes_gpc function caused
a deprecate warning. get_magic_quotes_gpc can be used to detected
the magic_quotes behavior and therefore should not raise a warning at any
time. The patch removes this warning

We do not merge pull requests directly on github. All PRs will be pulled and pushed through http://git.php.net.

Guidelines for contributors