1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 22:52:40 +02:00
Anatol Belski 4091e94660 Fixed bug #64769 mbstring PHPTs crash on Windows x64
The tricky business going there in oniguruma is saving a pointer
in an int variable, passing that variable into a function and making
it a pointer again. On 64bit windows casting a pointer to a 32 bit
int will truncate that pointer. This kind of things won't work on
Windows x64.

[SNIPPET]
unsigned long ul0[2], ul1, *ul2;

ul0[0] = 42uL;
ul0[0] = 24uL;

ul1 = (unsigned long)ul0;
ul2 = (unsigned long *)ul1;

/* now it's broken, accessing ul2[0] will crash. */
[/SNIPPET]

To make it portable, ULONG_PTR should be used in this case.

In oniguruma this behaviour is to see at least in the following
codepath:

ext/mbstring/oniguruma/enc/unicode.c:10938
ext/mbstring/oniguruma/st.c:308
ext/mbstring/oniguruma/enc/unicode.c:10859
2013-05-08 19:22:37 +02:00
2013-04-25 18:02:53 +02:00
2013-01-01 16:37:09 +08:00
2010-04-26 23:53:30 +00:00
2013-05-03 08:23:07 +02:00
2012-08-26 17:46:01 +02:00
2013-01-01 16:37:09 +08:00
2013-05-01 21:37:28 +02:00
2012-10-02 00:02:08 +08:00
2013-02-13 16:26:47 +04:00
2013-02-26 14:35:47 +01:00
2013-04-25 18:02:53 +02:00
2011-12-04 16:46:45 +00:00
2013-01-01 16:37:09 +08:00
2009-11-23 21:53:30 +00:00
2008-06-19 17:59:35 +00:00
2012-11-13 17:08:49 +01:00
MFH
2008-01-17 14:38:16 +00:00
2013-03-16 16:11:00 +04:00
2005-09-19 19:03:53 +00:00
2009-07-13 16:10:29 +00:00
2013-04-05 14:27:56 +08:00

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 mailinglist 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 http://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.

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