The PHP Interpreter
Go to file
Christoph M. Becker c2935499b1 Fix #79212: NumberFormatter::format() may detect wrong type
We have to convert to number *before* detecting the type, to cater to
internal objects implementing `cast_object`.

We also get rid of the fallback behavior of using `FORMAT_TYPE_INT32`,
because that can no longer happen; after `convert_scalar_to_number_ex`
the type is either `IS_LONG` or `IS_DOUBLE`.  We cater explicitly to
the `IS_ARRAY` case what also avoids triggering a type confusion when
`::TYPE_INT64` is passed as `$type`.
2020-02-03 12:28:32 +01:00
appveyor Merge branch 'PHP-7.2' into PHP-7.3 2019-05-31 20:50:17 +02:00
build Merge branch 'PHP-7.2' into PHP-7.3 2018-10-20 09:54:00 +02:00
ext Fix #79212: NumberFormatter::format() may detect wrong type 2020-02-03 12:28:32 +01:00
main Fix bug #78323: Code 0 is returned on invalid options 2020-01-27 13:32:19 +01:00
pear Sync leading and final newlines in source code files 2018-10-14 12:55:24 +02:00
sapi Fix bug #78323: Code 0 is returned on invalid options 2020-01-27 13:32:19 +01:00
scripts Merge branch 'PHP-7.2' into PHP-7.3 2018-10-19 00:10:22 +02:00
tests Backport test fix 2019-07-02 16:11:54 +02:00
travis Add a dl() test to Travis 2019-04-18 12:57:54 +02:00
TSRM Fix #78538: shmop memory leak 2020-01-03 18:10:29 +01:00
win32 Fix #79146: cscript can fail to run on some systems 2020-01-21 11:53:11 +01:00
Zend Fix bug #76047 2020-01-31 10:26:40 +01:00
.appveyor.yml Merge branch 'PHP-7.2' into PHP-7.3 2019-08-27 13:35:05 +02:00
.editorconfig Extend wildcard files section in EditorConfig [ci skip] 2019-06-09 22:53:58 +02:00
.gdbinit Trim trailing whitespace in source code files 2018-10-13 14:16:33 +02:00
.gitattributes
.gitignore Merge branch 'PHP-7.2' into PHP-7.3 2018-10-19 00:10:22 +02:00
.travis.yml Add a dl() test to Travis 2019-04-18 12:57:54 +02:00
acinclude.m4 Merge branch 'PHP-7.2' into PHP-7.3 2019-10-23 11:17:46 +02:00
buildconf Merge branch 'PHP-7.2' into PHP-7.3 2018-10-20 09:54:00 +02:00
buildconf.bat Fix #79146: cscript can fail to run on some systems 2020-01-21 11:53:11 +01:00
CODING_STANDARDS Trim trailing whitespace in source code files 2018-10-13 14:16:33 +02:00
config.guess
config.sub
configure.ac next will be 7.2.28 2020-01-22 09:17:00 +01:00
CONTRIBUTING.md
CREDITS
EXTENSIONS List me in the openssl maintainers 2019-01-17 20:04:44 +00:00
footer Sync leading and final newlines in source code files 2018-10-14 12:55:24 +02:00
genfiles Sync leading and final newlines in source code files 2018-10-14 12:55:24 +02:00
header
INSTALL
LICENSE Trim trailing whitespace in source code files 2018-10-13 14:16:33 +02:00
ltmain.sh
makedist Merge branch 'PHP-7.2' into PHP-7.3 2018-10-20 09:54:00 +02:00
Makefile.frag Sync leading and final newlines in source code files 2018-10-14 12:55:24 +02:00
Makefile.gcov Sync leading and final newlines in source code files 2018-10-14 12:55:24 +02:00
Makefile.global Merge branch 'PHP-7.2' into PHP-7.3 2019-03-20 11:55:06 +01:00
NEWS Fix #79212: NumberFormatter::format() may detect wrong type 2020-02-03 12:28:32 +01:00
php7.spec.in
php.gif
php.ini-development Fixed bug #79080 [ci skip] 2020-01-25 13:29:36 +01:00
php.ini-production Fixed bug #79080 [ci skip] 2020-01-25 13:29:36 +01:00
README.EXT_SKEL Sync leading and final newlines in source code files 2018-10-14 12:55:24 +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:16:33 +02:00
README.MAILINGLIST_RULES
README.md Sync leading and final newlines in source code files 2018-10-14 12:55:24 +02:00
README.NEW-OUTPUT-API Trim trailing whitespace in source code files 2018-10-13 14:16:33 +02:00
README.PARAMETER_PARSING_API Trim trailing whitespace in source code files 2018-10-13 14:16:33 +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:55:24 +02:00
README.SELF-CONTAINED-EXTENSIONS Sync leading and final newlines in source code files 2018-10-14 12:55:24 +02:00
README.STREAMS Trim trailing whitespace in source code files 2018-10-13 14:16:33 +02:00
README.SUBMITTING_PATCH Trim trailing whitespace in source code files 2018-10-13 14:16:33 +02:00
README.TESTING Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
README.UNIX-BUILD-SYSTEM
README.WIN32-BUILD-SYSTEM Sync leading and final newlines in source code files 2018-10-14 12:55:24 +02:00
run-tests.php Merge branch 'PHP-7.2' into PHP-7.3 2019-07-25 09:49:18 -06:00
server-tests-config.php Sync leading and final newlines in source code files 2018-10-14 12:55:24 +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 Fix #78808: [LMDB] MDB_MAP_FULL: Environment mapsize limit reached 2020-01-03 18:49:12 +01:00
UPGRADING.INTERNALS Sync leading and final newlines in source code files 2018-10-14 12:55:24 +02:00
vcsclean

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