1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 13:01:02 +02:00
Christoph M. Becker f3ff72e54b Fix #77937: preg_match failed
On some recent Windows systems, ext\pcre\tests\locales.phpt fails,
because 'pt_PT' is accepted by `setlocale()`, but not properly
supported by the ctype functions, which are used internally by PCRE2 to
build the localized character tables.

Since there appears to be no way to properly check whether a given
locale is fully supported, but we want to minimize BC impact, we filter
out typical Unix locale names, except for a few cases which have
already been properly supported on Windows.  This way code like

  setlocale(LC_ALL, 'de_DE.UTF-8', 'de_DE', 'German_Germany.1252');

should work like on older Windows systems.

It should be noted that the locale names causing trouble are not (yet)
documented as valid names anyway, see
<https://docs.microsoft.com/en-us/cpp/c-runtime-library/locale-names-languages-and-country-region-strings?view=vs-2019>.
2019-06-11 08:42:32 +02:00
2019-05-31 20:49:42 +02:00
2018-10-20 09:51:22 +02:00
2019-06-11 08:42:32 +02:00
2019-05-14 20:22:00 -04:00
2019-06-04 16:26:34 +02:00
2019-02-12 11:42:33 +01:00
2019-05-09 16:54:11 +02:00
2019-06-01 13:43:31 +02:00
2018-10-19 00:07:42 +02:00
2019-03-27 10:38:03 +01:00
2018-10-20 09:51:22 +02:00
2016-11-12 11:20:01 +01:00
2019-05-14 20:22:00 -04:00
2017-04-02 13:45:08 +02:00
2018-01-02 12:55:14 +08:00
2016-04-05 12:13:38 +02:00
2009-11-23 21:54:21 +00:00
2018-10-20 09:51:22 +02:00
2019-06-11 08:42:32 +02:00
2008-01-17 14:37:58 +00:00
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

Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-22T16:25:23.756Z
Readme BSD-3-Clause 884 MiB
Languages
C 66.1%
PHP 31.2%
C++ 0.8%
Shell 0.5%
M4 0.4%
Other 0.8%