Go to file
Peter Kokot 92ac598aab Remove local variables
This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly used by Vim and Emacs editors
yet with recent changes the once working definitions don't work
anymore in Vim without custom plugins or additional configuration.
Neither are these settings synced across the PHP code base.

A simpler and better approach is EditorConfig and fixing code
using some code style fixing tools in the future instead.

This patch also removes the so called modelines for Vim. Modelines
allow Vim editor specifically to set some editor configuration such as
syntax highlighting, indentation style and tab width to be set in the
first line or the last 5 lines per file basis. Since the php test
files have syntax highlighting already set in most editors properly and
EditorConfig takes care of the indentation settings, this patch removes
these as well for the Vim 6.0 and newer versions.

With the removal of local variables for certain editors such as
Emacs and Vim, the footer is also probably not needed anymore when
creating extensions using ext_skel.php script.

Additionally, Vim modelines for setting php syntax and some editor
settings has been removed from some *.phpt files.  All these are
mostly not relevant for phpt files neither work properly in the
middle of the file.
2019-02-03 21:03:00 +01:00
appveyor Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
build Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
ext Remove local variables 2019-02-03 21:03:00 +01:00
main Remove local variables 2019-02-03 21:03:00 +01:00
pear Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
sapi Remove local variables 2019-02-03 21:03:00 +01:00
scripts Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
tests Revert "Don't silence fatal errors with @" 2019-01-31 09:39:10 +01:00
travis Migrate ext/gd to pkg-config 2019-01-15 10:15:05 +01:00
TSRM Remove local variables 2019-02-03 21:03:00 +01:00
win32 Remove local variables 2019-02-03 21:03:00 +01:00
Zend Remove local variables 2019-02-03 21:03:00 +01:00
.appveyor.yml Merge branch 'PHP-7.2' into PHP-7.3 2019-01-12 22:14:35 +01: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:17:28 +02:00
.gitattributes Fix .gitattributes 2018-10-20 22:58:27 +02:00
.gitignore Remove lexer files generated by RE2C 2018-11-11 02:55:46 +01:00
.travis.yml Migrate ext/gd to pkg-config 2019-01-15 10:15:05 +01:00
acinclude.m4 ext/openssl: port to pkg-config macro and consistently require its use 2019-01-11 11:49:37 +01:00
buildconf Merge branch 'PHP-7.2' into PHP-7.3 2018-10-20 09:54:00 +02:00
buildconf.bat Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
CODING_STANDARDS Move all testing docs to qa.php.net 2018-10-18 08:01:22 +02:00
configure.ac Remove local variables 2019-02-03 21:03:00 +01:00
CONTRIBUTING.md Set AC_CONFIG_AUX_DIR to build directory 2018-12-10 08:11:44 +01:00
CREDITS Update http to https 2018-06-25 08:31:32 +02:00
EXTENSIONS [ci skip] List FFI extension 2019-01-21 20:24:16 +01:00
genfiles Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
header Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
INSTALL Update http to https 2018-06-25 08:31:32 +02:00
LICENSE Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
makedist Set AC_CONFIG_AUX_DIR to build directory 2018-12-10 08:11:44 +01:00
Makefile.gcov Add forked and maintained extension in php-src from GCOV 2018-12-02 22:36:52 -02:00
Makefile.global Remove stamp-h 2018-10-18 08:35:43 +02:00
NEWS Fixed bug #77329 (Buffer Overflow via overly long Error Messages) 2019-02-01 11:11:15 +03:00
php7.spec.in Replaces php5 with php7, without whitespace changes. 2014-09-20 10:01:44 +02:00
php.gif
php.ini-development Remove local variables 2019-02-03 21:03:00 +01:00
php.ini-production Remove local variables 2019-02-03 21:03:00 +01:00
README.EXT_SKEL Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
README.GIT-RULES [ci skip] PHP 7.1 is now security-only branch 2018-11-23 21:20:13 +01:00
README.input_filter Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
README.MAILINGLIST_RULES - mention rfc 1855 2008-01-17 14:37:58 +00:00
README.md Move all testing docs to qa.php.net 2018-10-18 08:01:22 +02:00
README.NEW-OUTPUT-API Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
README.PARAMETER_PARSING_API Link to the fast_zpp RFC 2018-12-10 12:53:12 +11:00
README.REDIST.BINS Unbundle libsqlite3 2018-10-06 12:36:55 +02:00
README.RELEASE_PROCESS Fix README.RELEASE_PROCESS 2019-01-24 12:41:53 +01:00
README.SELF-CONTAINED-EXTENSIONS [ci skip] Remove automake and aclocal in comments 2018-10-21 13:06:58 +02:00
README.STREAMS Remove local variables 2019-02-03 21:03:00 +01:00
README.SUBMITTING_PATCH Move all testing docs to qa.php.net 2018-10-18 08:01:22 +02:00
README.UNIX-BUILD-SYSTEM [ci skip] Remove automake and aclocal in comments 2018-10-21 13:06:58 +02:00
README.WIN32-BUILD-SYSTEM Remove local variables 2019-02-03 21:03:00 +01:00
run-tests.php Remove local variables 2019-02-03 21:03:00 +01:00
snapshot
UPGRADING Deprecate mb_ereg_replace with non-string pattern 2019-02-01 15:02:31 +01:00
UPGRADING.INTERNALS Implement typed properties 2019-01-11 15:49:06 +01: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 https://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 https://git.php.net.

Guidelines for contributors

Testing

To run tests the make test is used after successful compilation of the sources.

See Creating new test files chapter for more information about testing.