]> granicus.if.org Git - php/log
php
8 years agoUpdate NEWS
Christoph M. Becker [Mon, 20 Jun 2016 13:39:34 +0000 (15:39 +0200)]
Update NEWS

8 years agoMerge branch 'PHP-7.0'
Christoph M. Becker [Mon, 20 Jun 2016 13:29:27 +0000 (15:29 +0200)]
Merge branch 'PHP-7.0'

8 years agoUpdate NEWS
Christoph M. Becker [Mon, 20 Jun 2016 13:28:41 +0000 (15:28 +0200)]
Update NEWS

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Mon, 20 Jun 2016 13:20:58 +0000 (15:20 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoUpdate NEWS
Christoph M. Becker [Mon, 20 Jun 2016 13:18:47 +0000 (15:18 +0200)]
Update NEWS

8 years agoFix #64641: imagefilledpolygon doesn't draw horizontal line
Christoph M. Becker [Sun, 19 Jun 2016 11:54:55 +0000 (13:54 +0200)]
Fix #64641: imagefilledpolygon doesn't draw horizontal line

As has been reported, 1-dimensional horizontal filled polygons are not drawn
at all. That is caused by the scanline algorithm used for drawing filled
polygons which skips the drawing of horizontal edges, because that is
normally not necessary. If, however, the polygon consists of horizontal
edges only, that obviously doesn't work, so we add a special case handling.

That has also been fixed in libgd with
<https://github.com/libgd/libgd/commit/f9f10fa9>.

8 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Mon, 20 Jun 2016 11:59:35 +0000 (14:59 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Fixed the UTF-8 and long path support in the streams on Windows.

8 years agoCleanup zend_signal API
Dmitry Stogov [Mon, 20 Jun 2016 11:58:42 +0000 (14:58 +0300)]
Cleanup zend_signal API

8 years agoFixed the UTF-8 and long path support in the streams on Windows.
Anatol Belski [Mon, 20 Jun 2016 07:32:19 +0000 (09:32 +0200)]
Fixed the UTF-8 and long path support in the streams on Windows.

Since long the default PHP charset is UTF-8, however the Windows part is
out of step with this important point. The current implementation in PHP
doesn't technically permit to handle UTF-8 filepath and several other
things. Till now, only the ANSI compatible APIs are being used. Here is more
about it

https://msdn.microsoft.com/en-us/library/windows/desktop/dd317752%28v=vs.85%29.aspx

The patch fixes not only issues with multibyte filenames under
incompatible codepages, but indirectly also issues with some other multibyte
encodings like BIG5, Shift-JIS, etc. by providing a clean way to access
filenames in UTF-8. Below is a small list of issues from the bug tracker,
that are getting fixed:

https://bugs.php.net/63401
https://bugs.php.net/41199
https://bugs.php.net/50203
https://bugs.php.net/71509
https://bugs.php.net/64699
https://bugs.php.net/64506
https://bugs.php.net/30195
https://bugs.php.net/65358
https://bugs.php.net/61315
https://bugs.php.net/70943
https://bugs.php.net/70903
https://bugs.php.net/63593
https://bugs.php.net/54977
https://bugs.php.net/54028
https://bugs.php.net/43148
https://bugs.php.net/30730
https://bugs.php.net/33350
https://bugs.php.net/35300
https://bugs.php.net/46990
https://bugs.php.net/61309
https://bugs.php.net/69333
https://bugs.php.net/45517
https://bugs.php.net/70551
https://bugs.php.net/50197
https://bugs.php.net/72200
https://bugs.php.net/37672

Yet more related tickets can for sure be found - on bugs.php.net, Stackoverflow
and Github. Some of the bugs are pretty recent, some descend to early
2000th, but  the user comments in there last even till today. Just for example,
bug #30195 was opened in 2004, the latest comment in there was made in 2014. It
is certain, that these bugs descend not only to pure PHP use cases, but get also
redirected from the popular PHP based projects. Given the modern systems (and
those supported by PHP) are always based on NTFS, there is no excuse to keep
these issues unresolved.

The internalization approach on Windows is in many ways different from
UNIX and Linux, while it supports and is based on Unicode. It depends on the
current system code page, APIs used and exact kind how the binary was compiled
The locale doesn't affect the way Unicode or ANSI API work. PHP in particular
is being compiled without _UNICODE defined and this is conditioned by the
way we handle strings. Here is more about it

https://msdn.microsoft.com/en-us/library/tsbaswba.aspx

However, with any system code page ANSI functions automatically convert
paths to UTF-16. Paths in some encodings incompatible with the
current system code page, won't work correctly with ANSI APIs. PHP
till now only uses the ANSI Windows APIs.

For example, on a system with the current code page 1252, the paths
in cp1252 are supported and transparently converted to UTF-16 by the
ANSI functions. Once one wants to handle a filepath encoded with cp932 on
that particular system, an ANSI or a POSIX compatible function used in
PHP will produce an erroneous result. When trying to convert that cp932 path
to UTF-8 and passing to the ANSI functions, an ANSI function would
likely interpret the UTF-8 string as some string in the current code page and
create a filepath that represents every single byte of the UTF-8 string.
These behaviors are not only broken but also disregard the documented
INI settings.

This patch solves the issies with the multibyte paths on Windows by
intelligently enforcing the usage of the Unicode aware APIs. For
functions expect Unicode (fe CreateFileW, FindFirstFileW, etc.), arguments
will be converted to UTF-16 wide chars. For functions returning Unicode
aware data (fe GetCurrentDirectoryW, etc.), resulting wide string is
converted back to char's depending on the current PHP charset settings,
either to the current ANSI codepage (this is the behavior prior to this patch)
or to UTF-8 (the default behavior).

In a particular case, users might have to explicitly set
internal_encoding or default_charset, if filenames in ANSI codepage are
necessary. Current tests show no regressions and witness that this will be an
exotic case, the current default UTF-8 encoding is compatible with any
supported system. The dependency libraries are long switching to Unicode APIs,
so some tests were also added for extensions not directly related to streams.
At large, the patch brings over 150 related tests into the core. Those target
and was run on various environments with European, Asian, etc. codepages.
General PHP frameworks was tested and showed no regressions.

The impact on the current C code base is low, the most places affected
are the Windows only places in the three files tsrm_win32.c, zend_virtual_cwd.c
and plain_wrapper.c. The actual implementation of the most of the wide
char supporting functionality is in win32/ioutil.* and win32/codepage.*,
several  low level functionsare extended in place to avoid reimplementation for
now. No performance impact was sighted. As previously mentioned, the ANSI APIs
used prior the patch perform Unicode conversions internally. Using the
Unicode  APIs directly while doing custom conversions just retains the status
quo. The ways to optimize it are open (fe. by implementing caching for the
strings converted to wide variants).

The long path implementation is user transparent. If a path exceeds the
length of _MAX_PATH, it'll be automatically prefixed with \\?\. The MAXPATHLEN
is set to 2048 bytes.

Appreciation to Pierre Joye, Matt Ficken, @algo13 and others for tips, ideas
and testing.

Thanks.

8 years agoRemoved unused callbacks
Dmitry Stogov [Mon, 20 Jun 2016 10:27:59 +0000 (13:27 +0300)]
Removed unused callbacks

8 years agoupdate NEWS
Anatol Belski [Sun, 19 Jun 2016 18:40:45 +0000 (20:40 +0200)]
update NEWS

8 years agoupgraded to PCRE 8.39
Anatol Belski [Sun, 19 Jun 2016 18:38:31 +0000 (20:38 +0200)]
upgraded to PCRE 8.39

8 years agoMerge branch 'openssl_aead'
Jakub Zelenka [Sun, 19 Jun 2016 17:01:57 +0000 (18:01 +0100)]
Merge branch 'openssl_aead'

8 years agoAdd NEWS entry about OpenSSL AEAD
Jakub Zelenka [Sun, 19 Jun 2016 16:59:09 +0000 (17:59 +0100)]
Add NEWS entry about OpenSSL AEAD

8 years agoMerge branch 'openssl_error_store' into openssl_aead
Jakub Zelenka [Sun, 19 Jun 2016 16:55:33 +0000 (17:55 +0100)]
Merge branch 'openssl_error_store' into openssl_aead

8 years agoUpdate NEWS with info about OpenSSL error store
Jakub Zelenka [Sun, 19 Jun 2016 16:52:09 +0000 (17:52 +0100)]
Update NEWS with info about OpenSSL error store

8 years agoMerge branch 'openssl_error_store' into openssl_aead
Jakub Zelenka [Sun, 19 Jun 2016 16:36:57 +0000 (17:36 +0100)]
Merge branch 'openssl_error_store' into openssl_aead

8 years agoRemove test for incorrect fix of bug #69882
Jakub Zelenka [Sun, 19 Jun 2016 16:25:30 +0000 (17:25 +0100)]
Remove test for incorrect fix of bug #69882

The fix just cleared the errors without storing which was wrong

8 years agoMerge branch 'openssl_error_store' into openssl_aead
Jakub Zelenka [Sun, 19 Jun 2016 16:05:48 +0000 (17:05 +0100)]
Merge branch 'openssl_error_store' into openssl_aead

8 years agoRemove expected openssl errors that are not needed anymore
Jakub Zelenka [Sun, 19 Jun 2016 15:46:27 +0000 (16:46 +0100)]
Remove expected openssl errors that are not needed anymore

8 years agoMerge branch 'master' into openssl_error_store
Jakub Zelenka [Sun, 19 Jun 2016 15:20:02 +0000 (16:20 +0100)]
Merge branch 'master' into openssl_error_store

8 years agoUpdate NEWS (this bug also exists in 7.1-alpha)
Xinchen Hui [Sun, 19 Jun 2016 06:47:42 +0000 (23:47 -0700)]
Update NEWS (this bug also exists in 7.1-alpha)

8 years agoMerge branch 'PHP-7.0'
Stanislav Malyshev [Sun, 19 Jun 2016 05:13:23 +0000 (22:13 -0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Update NEWS

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Sun, 19 Jun 2016 05:13:16 +0000 (22:13 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Update NEWS

8 years agoUpdate NEWS
Stanislav Malyshev [Sun, 19 Jun 2016 05:13:04 +0000 (22:13 -0700)]
Update NEWS

8 years agoMerge branch 'PHP-7.0'
Stanislav Malyshev [Sun, 19 Jun 2016 05:11:38 +0000 (22:11 -0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fix bug #72447: Type Confusion in php_bz2_filter_create()

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Sun, 19 Jun 2016 05:11:23 +0000 (22:11 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix bug #72447: Type Confusion in php_bz2_filter_create()

Conflicts:
ext/bz2/bz2_filter.c

8 years agoFix bug #72447: Type Confusion in php_bz2_filter_create()
Stanislav Malyshev [Sun, 19 Jun 2016 05:10:22 +0000 (22:10 -0700)]
Fix bug #72447: Type Confusion in php_bz2_filter_create()

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Sun, 19 Jun 2016 04:34:33 +0000 (21:34 -0700)]
Merge branch 'PHP-7.0'

8 years agoUpdate NEWS
Xinchen Hui [Sun, 19 Jun 2016 04:34:12 +0000 (21:34 -0700)]
Update NEWS

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Xinchen Hui [Sun, 19 Jun 2016 04:33:54 +0000 (21:33 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
main/streams/xp_socket.c

8 years agoFixed bug #72439 (Stream socket with remote address leads to a segmentation fault)
Xinchen Hui [Sun, 19 Jun 2016 04:29:47 +0000 (21:29 -0700)]
Fixed bug #72439 (Stream socket with remote address leads to a segmentation fault)

8 years agoException safety for direct CV assign of *CALL instrs
Nikita Popov [Fri, 17 Jun 2016 22:05:58 +0000 (00:05 +0200)]
Exception safety for direct CV assign of *CALL instrs

Converting T = *CALL; ASSIGN $v, T into $v = *CALL may not be
safe if an exception is thrown after the return value has been
populated -- in this case the value might be destroyed twice.

8 years agotypo
Xinchen Hui [Fri, 17 Jun 2016 16:40:12 +0000 (09:40 -0700)]
typo

8 years agoFixed bug #72441 (Segmentation fault: RFC list_keys)
Xinchen Hui [Fri, 17 Jun 2016 16:34:15 +0000 (09:34 -0700)]
Fixed bug #72441 (Segmentation fault: RFC list_keys)

8 years agoUpdate NEWS
Christoph M. Becker [Fri, 17 Jun 2016 16:09:46 +0000 (18:09 +0200)]
Update NEWS

8 years agoMerge branch 'PHP-7.0'
Christoph M. Becker [Fri, 17 Jun 2016 16:00:54 +0000 (18:00 +0200)]
Merge branch 'PHP-7.0'

8 years agoUpdate NEWS
Christoph M. Becker [Fri, 17 Jun 2016 16:00:24 +0000 (18:00 +0200)]
Update NEWS

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Fri, 17 Jun 2016 15:52:10 +0000 (17:52 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #53640: XBM images require width to be multiple of 8
Christoph M. Becker [Fri, 17 Jun 2016 15:50:36 +0000 (17:50 +0200)]
Fix #53640: XBM images require width to be multiple of 8

8 years agofix SQLite info
Anatol Belski [Fri, 17 Jun 2016 15:26:31 +0000 (17:26 +0200)]
fix SQLite info

8 years agoupdate NEWS and UPGRADING
Anatol Belski [Fri, 17 Jun 2016 15:18:29 +0000 (17:18 +0200)]
update NEWS and UPGRADING

8 years agoupdate NEWS
Anatol Belski [Fri, 17 Jun 2016 15:16:36 +0000 (17:16 +0200)]
update NEWS

8 years agofix test portability
Anatol Belski [Fri, 17 Jun 2016 15:09:42 +0000 (17:09 +0200)]
fix test portability

8 years agofix test portability
Anatol Belski [Fri, 17 Jun 2016 15:03:13 +0000 (17:03 +0200)]
fix test portability

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Fri, 17 Jun 2016 08:00:04 +0000 (16:00 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed "implicit declaration of function ‘msgformat_fix_quotes’"

8 years agoFixed "implicit declaration of function ‘msgformat_fix_quotes’"
Xinchen Hui [Fri, 17 Jun 2016 07:59:41 +0000 (15:59 +0800)]
Fixed "implicit declaration of function ‘msgformat_fix_quotes’"

8 years agofix test portability
Anatol Belski [Fri, 17 Jun 2016 07:05:27 +0000 (09:05 +0200)]
fix test portability

8 years agoMerge branch 'PHP-7.0'
Jakub Zelenka [Thu, 16 Jun 2016 19:12:50 +0000 (20:12 +0100)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Jakub Zelenka [Thu, 16 Jun 2016 19:11:54 +0000 (20:11 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix incorrect error suppressing in openssl_error_string test
Jakub Zelenka [Thu, 16 Jun 2016 19:11:02 +0000 (20:11 +0100)]
Fix incorrect error suppressing in openssl_error_string test

8 years agoFix occasionally failing OpenSSL DH bug test
Jakub Zelenka [Thu, 16 Jun 2016 19:09:17 +0000 (20:09 +0100)]
Fix occasionally failing OpenSSL DH bug test

The test was failing when first byte was 0

8 years agoMerge branch 'master' of http://git.php.net/repository/php-src
Christoph M. Becker [Thu, 16 Jun 2016 12:35:50 +0000 (14:35 +0200)]
Merge branch 'master' of http://git.php.net/repository/php-src

8 years agoUpdate NEWS
Christoph M. Becker [Thu, 16 Jun 2016 12:34:34 +0000 (14:34 +0200)]
Update NEWS

8 years agoMerge branch 'PHP-7.0'
Christoph M. Becker [Thu, 16 Jun 2016 12:34:10 +0000 (14:34 +0200)]
Merge branch 'PHP-7.0'

8 years agoUpdate NEWS
Christoph M. Becker [Thu, 16 Jun 2016 12:33:41 +0000 (14:33 +0200)]
Update NEWS

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 16 Jun 2016 12:32:10 +0000 (14:32 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoUpdate NEWS
Christoph M. Becker [Thu, 16 Jun 2016 12:26:45 +0000 (14:26 +0200)]
Update NEWS

8 years agoMore type inference fixes
Nikita Popov [Thu, 16 Jun 2016 09:24:20 +0000 (11:24 +0200)]
More type inference fixes

8 years agoMerge branch 'PHP-7.0'
Christoph M. Becker [Thu, 16 Jun 2016 12:12:35 +0000 (14:12 +0200)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 16 Jun 2016 12:06:39 +0000 (14:06 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #43475: Styled thick horizontal lines are scrambled
Christoph M. Becker [Wed, 15 Jun 2016 18:58:06 +0000 (20:58 +0200)]
Fix #43475: Styled thick horizontal lines are scrambled

Thick lines are drawn by gdImageFilledRectangle(), which iterates over
the x ordinate first (Z order) to apply the style pattern. While this works
fine for vertical and diagonal lines, it obviously fails for horizontal
lines, which have to be iterated over in N order.

To fix this bug, we introduce the helpers  gdImageFilled(H|V)Rectangle(),
which may be reused for other purposes as well.

This is basically the same fix as libgd/libgd/c2b91dbc.

8 years agoAdded NEWS entries
Dmitry Stogov [Thu, 16 Jun 2016 05:44:38 +0000 (08:44 +0300)]
Added NEWS entries

8 years agoImplemented RFC: Replace "Missing argument" warning with "Too few arguments" exception
Dmitry Stogov [Wed, 15 Jun 2016 23:32:02 +0000 (02:32 +0300)]
Implemented RFC: Replace "Missing argument" warning with "Too few arguments" exception
Squashed commit of the following:

commit 8b45fa2acb8cd92542a39e1e4720fe1f4fabc26c
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Jun 16 01:52:50 2016 +0300

    Separate slow path of ZEND_RECV into a cold function.

commit 9e18895ee59c64c93a96b1ba3061355c4663e962
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Jun 15 23:26:28 2016 +0300

    Required argument can't be IS_UNDEF anymore.

commit 662db66e3943d4455c65e4f987bb54abf724ecb2
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue May 31 17:14:50 2016 +0300

    Replace "Missing argument" warning by "Too few arguments" exception.

8 years agoImplemented RFC: Fix inconsistent behavior of $this variable
Dmitry Stogov [Wed, 15 Jun 2016 23:30:23 +0000 (02:30 +0300)]
Implemented RFC: Fix inconsistent behavior of $this variable
Squashed commit of the following:

commit bdd3b6895c3ce3eacfcf7d4bf4feb8dfa61801fd
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Thu Jun 16 00:19:42 2016 +0300

    Fixed GOTO VM

commit 2f1d7c8b89ce821086d357cf65f629f040a85c03
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Jun 15 21:01:57 2016 +0300

    Removed unused variable

commit cf749c42b0b1919f70b1e7d6dcbfff76899506af
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Jun 15 19:06:16 2016 +0300

    Protection from $this reassign through mb_parse_str()

commit 59a9a6c83c66b666971e57f1173b33a422166efd
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Jun 15 18:14:50 2016 +0300

    Added type inference rule for FETCH_THIS opcode

commit 73f8d14a856f14a461430b3c7534ab2ce870cbf6
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Jun 15 18:11:18 2016 +0300

    Restored PHP-7 behavior of isset($this->foo).
    It throws exception if not in object context.
    Removed useless opcode handlers.

commit fa0881381e8ae97e022ae5d1ec0851c952f33c82
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue May 31 12:25:47 2016 +0300

    Changed "Notice: Undefined variable: this" into "Exception: Using $this when not in object context".

commit e32cc528c0f2c97963d8ec83eff0269f1f45af18
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue May 24 02:02:43 2016 +0300

    Throw exception on attempt to re-assign $this through extract() and parse_str().

commit 41f1531b52113ec8a4c208aa6b9ef50f1386bb3f
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon May 23 22:18:36 2016 +0300

    Fixed inconsistent $this behavior

8 years agoFix type inference bugs
Nikita Popov [Wed, 8 Jun 2016 20:21:36 +0000 (22:21 +0200)]
Fix type inference bugs

* Add proper array_key_any|array_of_any|array_of_ref in some more
  places
* strlen() on objects may be null
* IS fetch on string dim may be null

8 years agoAdded specialized handlers for SEND_VAR/SEND_VAR_EX opcodes.
Dmitry Stogov [Wed, 15 Jun 2016 20:07:46 +0000 (23:07 +0300)]
Added specialized handlers for SEND_VAR/SEND_VAR_EX opcodes.

8 years agoFixed mistakes in type inference rules.
Dmitry Stogov [Wed, 15 Jun 2016 20:04:17 +0000 (23:04 +0300)]
Fixed mistakes in type inference rules.

8 years agoFixed expected test outcome due to rule changes
Derick Rethans [Wed, 15 Jun 2016 17:31:41 +0000 (18:31 +0100)]
Fixed expected test outcome due to rule changes

8 years agoMerge branch 'PHP-7.0'
Derick Rethans [Wed, 15 Jun 2016 17:30:19 +0000 (18:30 +0100)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Derick Rethans [Wed, 15 Jun 2016 17:30:03 +0000 (18:30 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFixed expected test outcome due to rule changes
Derick Rethans [Wed, 15 Jun 2016 17:29:40 +0000 (18:29 +0100)]
Fixed expected test outcome due to rule changes

8 years agoUpdated to version 2016.5 (2016e)
Derick Rethans [Wed, 15 Jun 2016 10:58:51 +0000 (11:58 +0100)]
Updated to version 2016.5 (2016e)

8 years agoEmpty merge
Derick Rethans [Wed, 15 Jun 2016 10:58:51 +0000 (11:58 +0100)]
Empty merge

8 years agoUpdated to version 2016.5 (2016e)
Derick Rethans [Wed, 15 Jun 2016 10:58:50 +0000 (11:58 +0100)]
Updated to version 2016.5 (2016e)

8 years agoEmpty merge
Derick Rethans [Wed, 15 Jun 2016 10:58:49 +0000 (11:58 +0100)]
Empty merge

8 years agoUpdated to version 2016.5 (2016e)
Derick Rethans [Wed, 15 Jun 2016 10:58:47 +0000 (11:58 +0100)]
Updated to version 2016.5 (2016e)

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Wed, 15 Jun 2016 06:56:58 +0000 (14:56 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:

8 years agoThese bugs are also in 7.1-alpha
Xinchen Hui [Wed, 15 Jun 2016 06:56:41 +0000 (14:56 +0800)]
These bugs are also in 7.1-alpha

8 years agoMerge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0
Xinchen Hui [Wed, 15 Jun 2016 06:56:07 +0000 (14:56 +0800)]
Merge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0

* 'PHP-7.0' of git.php.net:/php-src:
  Maybe fix bug #72011
  Fix #50845: exif_process_IFD_TAG: Use the right offset if reading from stream
  Fix bug #72138 - Integer Overflow in Length of String-typed ZVAL

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Wed, 15 Jun 2016 06:55:43 +0000 (14:55 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed(attempt to) bug #72405 (mb_ereg_replace - mbc_to_code (oniguruma) - oob read access)

8 years agoFixed(attempt to) bug #72405 (mb_ereg_replace - mbc_to_code (oniguruma) - oob read...
Xinchen Hui [Wed, 15 Jun 2016 06:54:57 +0000 (14:54 +0800)]
Fixed(attempt to) bug #72405 (mb_ereg_replace - mbc_to_code (oniguruma) - oob read access)

according to ext/mbstring/oniguruma/enc/utf8.c, max bytes are 6

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Tue, 14 Jun 2016 20:39:18 +0000 (22:39 +0200)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Tue, 14 Jun 2016 20:38:44 +0000 (22:38 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
ext/date/php_date.c

8 years agoMaybe fix bug #72011
Nikita Popov [Tue, 14 Jun 2016 20:36:09 +0000 (22:36 +0200)]
Maybe fix bug #72011

8 years agoMerge branch 'PHP-7.0'
Stanislav Malyshev [Tue, 14 Jun 2016 17:51:02 +0000 (10:51 -0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fix #50845: exif_process_IFD_TAG: Use the right offset if reading from stream

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Tue, 14 Jun 2016 17:50:45 +0000 (10:50 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix #50845: exif_process_IFD_TAG: Use the right offset if reading from stream

8 years agoFix #50845: exif_process_IFD_TAG: Use the right offset if reading from stream
Bartosz Dziewoński [Tue, 14 Jun 2016 11:27:56 +0000 (13:27 +0200)]
Fix #50845: exif_process_IFD_TAG: Use the right offset if reading from stream

When the location of the data is outside of the range we have
preloaded (for example, if it's before the beginning of the IFD
structure), we have to read it from the stream into a separate buffer.
The offset calculations in this case were incorrect, resulting in
bogus values being read for the affected fields (sometimes parts of
other fields, sometimes binary data).

The included test image, sourced from [1], is in the public domain.

[1] https://commons.wikimedia.org/wiki/File:U.S._Marines_Prepare_to_board_an_MV-22_Osprey_160509-M-AF202-041.jpg

8 years agoImprove the signature
Xinchen Hui [Tue, 14 Jun 2016 15:05:17 +0000 (08:05 -0700)]
Improve the signature

8 years agoUnused var
Xinchen Hui [Tue, 14 Jun 2016 13:29:02 +0000 (21:29 +0800)]
Unused var

8 years agoMerge branch 'master' of git.php.net:/php-src
Xinchen Hui [Tue, 14 Jun 2016 10:20:23 +0000 (18:20 +0800)]
Merge branch 'master' of git.php.net:/php-src

* 'master' of git.php.net:/php-src:
  Fix bug #72138 - Integer Overflow in Length of String-typed ZVAL

8 years agoC89 compatibility
Xinchen Hui [Tue, 14 Jun 2016 10:17:49 +0000 (18:17 +0800)]
C89 compatibility

8 years agoMerge branch 'PHP-7.0'
Stanislav Malyshev [Tue, 14 Jun 2016 08:04:07 +0000 (01:04 -0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fix bug #72138 - Integer Overflow in Length of String-typed ZVAL

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Tue, 14 Jun 2016 08:03:37 +0000 (01:03 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix bug #72138 - Integer Overflow in Length of String-typed ZVAL

8 years agoFix bug #72138 - Integer Overflow in Length of String-typed ZVAL
Stanislav Malyshev [Tue, 14 Jun 2016 08:03:03 +0000 (01:03 -0700)]
Fix bug #72138 - Integer Overflow in Length of String-typed ZVAL

8 years agoOnly allow single comma in tail
Xinchen Hui [Tue, 14 Jun 2016 06:02:34 +0000 (14:02 +0800)]
Only allow single comma in tail

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Tue, 14 Jun 2016 01:20:37 +0000 (18:20 -0700)]
Merge branch 'PHP-7.0'

8 years agoFixed bug #72399 (Use-After-Free in MBString (search_re))
Xinchen Hui [Tue, 14 Jun 2016 01:20:26 +0000 (18:20 -0700)]
Fixed bug #72399 (Use-After-Free in MBString (search_re))

8 years agoImplemented FR #72385 (Update SQLite bundle lib(3.13.0))
Xinchen Hui [Tue, 14 Jun 2016 00:53:31 +0000 (17:53 -0700)]
Implemented FR #72385 (Update SQLite bundle lib(3.13.0))

8 years agoMerge branch 'master' of git.php.net:/php-src
Xinchen Hui [Tue, 14 Jun 2016 00:36:26 +0000 (17:36 -0700)]
Merge branch 'master' of git.php.net:/php-src