The PHP Interpreter https://www.php.net
Find a file
Michael Orlitzky a552ac5bd5 ext/tidy: add support for the new tidy-html5 library.
Our existing libtidy support is based on the legacy "HTML tidy"
project. That project now has a successor called tidy-html5, where all
new features and bugfixes happen. Of particular note are the fixes for
two security vulnerabilities, CVE-2015-5522 and CVE-2015-5523.

The API is largely unchanged in the new project (which is truly the
successor of the original -- not a fork), and so it is almost a
drop-in replacement as far as PHP is concerned. However, one file has
changed in the new project: "buffio.h" has been moved to
"tidybuffio.h".

This commit detects the presence of tidybuffio.h at build time, and
then adjusts the import statement in tidy.c accordingly. The result is
a build that works against either the legacy project or the new
tidy-html5 project, although the test suite for the tidy extension now
fails. Those failures are not critical and will be fixed.

Gentoo-Bug: 561452
Gentoo-Bug: 585474
PHP-Bug: 72379
2016-07-11 14:05:43 +02:00
build Merge branch 'PHP-5.6' into PHP-7.0 2016-01-04 18:13:38 +01:00
ext ext/tidy: add support for the new tidy-html5 library. 2016-07-11 14:05:43 +02:00
main Pass error severity to SAPI modules and raise corresponding error level in Apache 2016-07-11 09:34:48 +02:00
netware Merge branch 'PHP-5.6' into PHP-7.0 2016-01-01 19:48:25 +02:00
pear
sapi fix build with mod_winnt 2016-07-11 09:40:43 +02:00
scripts Merge branch 'PHP-5.6' into PHP-7.0 2016-01-04 18:13:38 +01:00
tests Add decimal point in double serialization 2016-06-26 13:26:43 +01:00
travis Disable PEAR in Travis build 2015-12-05 22:48:29 +01:00
TSRM Fixed the UTF-8 and long path support in the streams on Windows. 2016-06-20 12:45:39 +02:00
win32 fix cli codepage reset 2016-07-11 09:24:41 +02:00
Zend Add document for zend_gc_collect_cycles 2016-07-11 12:44:42 +02:00
.gdbinit
.gitattributes
.gitignore Merge branch 'PHP-5.6' into PHP-7.0 2015-12-17 14:30:00 +08:00
.travis.yml
acinclude.m4 improve 7132fe19c2 2016-05-13 12:47:36 +01:00
buildconf
buildconf.bat
CODING_STANDARDS Update CODING_STANDARDS 2016-05-18 17:45:12 +02:00
config.guess
config.sub
configure.in 5.6.25 is next 2016-07-07 00:09:48 +02:00
CONTRIBUTING.md
CREDITS
EXTENSIONS
footer
genfiles
header Merge branch 'PHP-5.6' into PHP-7.0 2016-01-01 19:48:25 +02:00
INSTALL remove description for apache 1.3 2016-04-05 12:13:38 +02:00
LICENSE Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
ltmain.sh
makedist
Makefile.frag
Makefile.gcov
Makefile.global Merge branch 'PHP-5.6' into PHP-7.0 2016-02-08 20:29:24 +02:00
makerpm
NEWS Credit Scott, who authored the ext/mcrypt deprecation RFC 2016-07-11 13:41:01 +02:00
php.gif
php.ini-development Merge branch 'pull-request/1945' 2016-07-03 12:33:27 +02:00
php.ini-production Merge branch 'pull-request/1945' 2016-07-03 12:33:27 +02:00
php7.spec.in
README.EXT_SKEL Remove TSRMLS_* from docs as it's not used anymore 2016-02-17 22:36:01 -08:00
README.GIT-RULES Fix typos in git rules and release process READMEs 2016-01-29 17:04:39 +01:00
README.input_filter Remove TSRMLS_* from docs as it's not used anymore 2016-02-17 22:36:01 -08:00
README.MAILINGLIST_RULES
README.md Fix typo 2016-06-04 19:06:59 +02:00
README.namespaces
README.NEW-OUTPUT-API Remove TSRMLS_* from docs as it's not used anymore 2016-02-17 22:36:01 -08:00
README.PARAMETER_PARSING_API Fix one zpp usage in interbase 2016-03-03 23:50:02 +01:00
README.REDIST.BINS cleanup, ext/json is simple PHP now 2016-02-20 17:42:53 +01:00
README.RELEASE_PROCESS Fix typos in git rules and release process READMEs 2016-01-29 17:04:39 +01:00
README.SELF-CONTAINED-EXTENSIONS
README.STREAMS Remove TSRMLS_* from docs as it's not used anymore 2016-02-17 22:36:01 -08:00
README.SUBMITTING_PATCH
README.TESTING
README.TESTING2
README.UNIX-BUILD-SYSTEM
README.WIN32-BUILD-SYSTEM
run-tests.php Merge branch 'PHP-7.0' 2016-05-10 15:40:09 -04:00
server-tests-config.php
server-tests.php Merge branch 'PHP-5.6' into PHP-7.0 2016-01-04 18:13:38 +01:00
snapshot
stamp-h.in
stub.c
UPGRADING Update for NEWS 2016-07-11 13:30:46 +02:00
UPGRADING.INTERNALS move the internal only info into UPGRADING.INTERNALS 2016-07-11 11:22:00 +02:00
vcsclean

The PHP Interpreter

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

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