]> granicus.if.org Git - php/log
php
8 years agoMerge branch 'pull-request/1946' into PHP-7.1.0
Côme Bernigaud [Thu, 23 Jun 2016 05:22:40 +0000 (07:22 +0200)]
Merge branch 'pull-request/1946' into PHP-7.1.0

* pull-request/1946:
  Add additional LDAP SASL constants
  Add tests for LDAP_OPT_* constants
  Add LDAP TLS Protocol Min constants
  Add tests for the LDAP CRL check option
  Add missing LDAP constants

8 years agomerge news entries from 5.5 php-7.1.0alpha2
Joe Watkins [Wed, 22 Jun 2016 14:55:16 +0000 (15:55 +0100)]
merge news entries from 5.5

8 years agobump version for release
Joe Watkins [Wed, 22 Jun 2016 05:30:30 +0000 (06:30 +0100)]
bump version for release

8 years agoMerge branch 'PHP-7.0'
Ferenc Kovacs [Wed, 22 Jun 2016 01:09:18 +0000 (03:09 +0200)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Ferenc Kovacs [Wed, 22 Jun 2016 01:08:10 +0000 (03:08 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoupdate NEWS
Ferenc Kovacs [Wed, 22 Jun 2016 01:03:01 +0000 (03:03 +0200)]
update NEWS

8 years agoFixed test according to FR #46600 ("_empty_" key in objects)
Dmitry Stogov [Tue, 21 Jun 2016 21:56:56 +0000 (00:56 +0300)]
Fixed test according to FR #46600 ("_empty_" key in objects)

8 years agoFixed compilation warnings
Dmitry Stogov [Tue, 21 Jun 2016 21:40:50 +0000 (00:40 +0300)]
Fixed compilation warnings

8 years agoEnable Zend signals by default
Dmitry Stogov [Tue, 21 Jun 2016 17:14:19 +0000 (20:14 +0300)]
Enable Zend signals by default

8 years agoFixed compilation warnings
Dmitry Stogov [Tue, 21 Jun 2016 17:12:29 +0000 (20:12 +0300)]
Fixed compilation warnings

8 years agoRestored signed format specifier
Dmitry Stogov [Tue, 21 Jun 2016 17:12:04 +0000 (20:12 +0300)]
Restored signed format specifier

8 years agoRevert "sync tests with the latest format fixes"
Dmitry Stogov [Tue, 21 Jun 2016 17:10:44 +0000 (20:10 +0300)]
Revert "sync tests with the latest format fixes"

This reverts commit ef7116d55b82e8bfb93f410105ad244c401fbebb.

8 years agosync tests with the latest format fixes
Anatol Belski [Tue, 21 Jun 2016 17:06:28 +0000 (19:06 +0200)]
sync tests with the latest format fixes

8 years agofix include order
Anatol Belski [Tue, 21 Jun 2016 16:58:11 +0000 (18:58 +0200)]
fix include order

8 years agofix typos
Anatol Belski [Tue, 21 Jun 2016 15:43:27 +0000 (17:43 +0200)]
fix typos

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 21 Jun 2016 15:25:12 +0000 (17:25 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix two remaining tests

8 years agofix two remaining tests
Anatol Belski [Tue, 21 Jun 2016 15:24:08 +0000 (17:24 +0200)]
fix two remaining tests

8 years agoFixed compilation warnings
Dmitry Stogov [Tue, 21 Jun 2016 14:56:07 +0000 (17:56 +0300)]
Fixed compilation warnings

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 21 Jun 2016 14:23:50 +0000 (16:23 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix test

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Tue, 21 Jun 2016 14:22:51 +0000 (16:22 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix test

8 years agofix test
Anatol Belski [Tue, 21 Jun 2016 14:20:03 +0000 (16:20 +0200)]
fix test

There is a difference between TS and NTS warning message, since
virtual_mkdir vs glibc directly is used. This has no effect for
the actual fix functionality.

8 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Tue, 21 Jun 2016 13:55:59 +0000 (16:55 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  re-fix leak
  re-fix leak
  Revert "fix leak"
  Revert "fix leak"

8 years agoFixed compilation warnings
Dmitry Stogov [Tue, 21 Jun 2016 13:55:17 +0000 (16:55 +0300)]
Fixed compilation warnings

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 21 Jun 2016 13:22:31 +0000 (15:22 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  re-fix leak
  re-fix leak
  Revert "fix leak"

8 years agore-fix leak
Anatol Belski [Tue, 21 Jun 2016 13:21:58 +0000 (15:21 +0200)]
re-fix leak

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Tue, 21 Jun 2016 13:21:26 +0000 (15:21 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  re-fix leak
  Revert "fix leak"

8 years agore-fix leak
Anatol Belski [Tue, 21 Jun 2016 13:18:10 +0000 (15:18 +0200)]
re-fix leak

8 years agoMerge branch 'master' of git.php.net:php-src
Anatol Belski [Tue, 21 Jun 2016 13:14:22 +0000 (15:14 +0200)]
Merge branch 'master' of git.php.net:php-src

8 years agoAdded ZEND_ATTRIBUTE_FORMAT to some middind functions.
Dmitry Stogov [Tue, 21 Jun 2016 13:00:37 +0000 (16:00 +0300)]
Added ZEND_ATTRIBUTE_FORMAT to some middind functions.
"%p" replaced by ZEND_LONG_FMT to avoid compilation warnings.
Fixed most incorrect use cases of format specifiers.

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 21 Jun 2016 12:59:56 +0000 (14:59 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Revert "fix leak"

8 years agoRevert "fix leak"
Anatol Belski [Tue, 21 Jun 2016 12:58:15 +0000 (14:58 +0200)]
Revert "fix leak"

This reverts commit 757105e2a26ec18ad3283be277516d81ba883bb2.

8 years agoRevert "fix leak"
Anatol Belski [Tue, 21 Jun 2016 12:51:43 +0000 (14:51 +0200)]
Revert "fix leak"

This reverts commit c5d9c508976bb289c265d99938bda4dbf14622d3.

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 21 Jun 2016 11:27:09 +0000 (13:27 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix leak
  fix leak

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Tue, 21 Jun 2016 11:26:34 +0000 (13:26 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix leak

8 years agofix leak
Anatol Belski [Tue, 21 Jun 2016 11:26:12 +0000 (13:26 +0200)]
fix leak

8 years agofix leak
Anatol Belski [Tue, 21 Jun 2016 10:29:41 +0000 (12:29 +0200)]
fix leak

8 years agoMerge branch 'PHP-7.0'
Remi Collet [Tue, 21 Jun 2016 09:17:08 +0000 (11:17 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  bump zip version

8 years agobump zip version
Remi Collet [Tue, 21 Jun 2016 09:16:21 +0000 (11:16 +0200)]
bump zip version

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 21 Jun 2016 07:55:20 +0000 (09:55 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  remove the huge test file, generate it on the fly instead
  remove the huge test file, generate it on the fly instead

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Tue, 21 Jun 2016 07:54:34 +0000 (09:54 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  remove the huge test file, generate it on the fly instead
  remove the huge test file, generate it on the fly instead

8 years agoMerge branch 'PHP-5.5' into PHP-5.6
Anatol Belski [Tue, 21 Jun 2016 07:53:04 +0000 (09:53 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  remove the huge test file, generate it on the fly instead

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 21 Jun 2016 07:49:13 +0000 (09:49 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  remove the huge test file, generate it on the fly instead

8 years agoremove the huge test file, generate it on the fly instead
Anatol Belski [Tue, 21 Jun 2016 07:42:38 +0000 (09:42 +0200)]
remove the huge test file, generate it on the fly instead

8 years agoremove the huge test file, generate it on the fly instead
Anatol Belski [Tue, 21 Jun 2016 07:42:38 +0000 (09:42 +0200)]
remove the huge test file, generate it on the fly instead

8 years agoremove the huge test file, generate it on the fly instead
Anatol Belski [Tue, 21 Jun 2016 07:42:38 +0000 (09:42 +0200)]
remove the huge test file, generate it on the fly instead

8 years agoMerge branch 'PHP-7.0'
Stanislav Malyshev [Tue, 21 Jun 2016 07:28:26 +0000 (00:28 -0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Now the right bug #
  Fix NEWS

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Tue, 21 Jun 2016 07:28:17 +0000 (00:28 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Now the right bug #
  Fix NEWS

Conflicts:
configure.in
main/php_version.h

8 years agoMerge branch 'PHP-5.5' into PHP-5.6
Stanislav Malyshev [Tue, 21 Jun 2016 07:27:46 +0000 (00:27 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Now the right bug #
  Fix NEWS

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

* PHP-7.0:
  iFixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow
  update NEWS
  fix tests
  fix build
  Fix bug #72455:  Heap Overflow due to integer overflows
  Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fix bug #72407: NULL Pointer Dereference at _gdScaleVert
  Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free
  Fix bug #72298 pass2_no_dither out-of-bounds access
  Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow
  Fix bug #72262 - do not overflow int
  Fix bug #72400 and #72403 - prevent signed int overflows for string lengths
  Fix bug #72275: don't allow smart_str to overflow int
  Fix bug #72340: Double Free Courruption in wddx_deserialize
  Fix bug #72321 - use efree() for emalloc allocation
  5.6.23RC1
  fix NEWS
  set versions

8 years agoMerge branch 'PHP-7.0.8' into PHP-7.0
Stanislav Malyshev [Tue, 21 Jun 2016 07:25:49 +0000 (00:25 -0700)]
Merge branch 'PHP-7.0.8' into PHP-7.0

* PHP-7.0.8:
  iFixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow
  update NEWS
  fix tests
  fix build
  Fix bug #72455:  Heap Overflow due to integer overflows
  Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fix bug #72407: NULL Pointer Dereference at _gdScaleVert
  Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free
  Fix bug #72298 pass2_no_dither out-of-bounds access
  Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow
  Fix bug #72262 - do not overflow int
  Fix bug #72400 and #72403 - prevent signed int overflows for string lengths
  Fix bug #72275: don't allow smart_str to overflow int
  Fix bug #72340: Double Free Courruption in wddx_deserialize
  Fix bug #72321 - use efree() for emalloc allocation
  5.6.23RC1
  fix NEWS
  set versions

Conflicts:
configure.in
main/php_version.h

8 years agoMerge branch 'PHP-5.6.23' into PHP-7.0.8
Stanislav Malyshev [Tue, 21 Jun 2016 07:24:32 +0000 (00:24 -0700)]
Merge branch 'PHP-5.6.23' into PHP-7.0.8

* PHP-5.6.23: (24 commits)
  iFixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow
  update NEWS
  fix tests
  fix build
  Fix bug #72455:  Heap Overflow due to integer overflows
  Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fix bug #72407: NULL Pointer Dereference at _gdScaleVert
  Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free
  Fix bug #72298 pass2_no_dither out-of-bounds access
  Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow
  Fix bug #72262 - do not overflow int
  Fix bug #72400 and #72403 - prevent signed int overflows for string lengths
  Fix bug #72275: don't allow smart_str to overflow int
  Fix bug #72340: Double Free Courruption in wddx_deserialize
  update NEWS
  Fix #66387: Stack overflow with imagefilltoborder
  Fix bug #72321 - use efree() for emalloc allocation
  5.6.23RC1
  Fix bug #72140 (segfault after calling ERR_free_strings())
  ...

Conflicts:
configure.in
ext/mbstring/php_mbregex.c
ext/mcrypt/mcrypt.c
ext/spl/spl_array.c
ext/spl/spl_directory.c
ext/standard/php_smart_str.h
ext/standard/string.c
ext/standard/url.c
ext/wddx/wddx.c
ext/zip/php_zip.c
main/php_version.h

8 years agoNow the right bug #
Stanislav Malyshev [Tue, 21 Jun 2016 07:18:27 +0000 (00:18 -0700)]
Now the right bug #

8 years agoFix NEWS
Stanislav Malyshev [Tue, 21 Jun 2016 07:14:50 +0000 (00:14 -0700)]
Fix NEWS

8 years agoMerge branch 'PHP-5.6.23' into PHP-5.6
Stanislav Malyshev [Tue, 21 Jun 2016 07:02:37 +0000 (00:02 -0700)]
Merge branch 'PHP-5.6.23' into PHP-5.6

* PHP-5.6.23:
  Fixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow
  update NEWS
  fix tests
  fix build
  Fix bug #72455:  Heap Overflow due to integer overflows
  Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fix bug #72407: NULL Pointer Dereference at _gdScaleVert
  Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free
  Fix bug #72298 pass2_no_dither out-of-bounds access
  Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow
  Fix bug #72262 - do not overflow int
  Fix bug #72400 and #72403 - prevent signed int overflows for string lengths
  Fix bug #72275: don't allow smart_str to overflow int
  Fix bug #72340: Double Free Courruption in wddx_deserialize
  Fix bug #72321 - use efree() for emalloc allocation
  5.6.23RC1

Conflicts:
configure.in
main/php_version.h

8 years agoMerge branch 'PHP-5.5' into PHP-5.6.23
Stanislav Malyshev [Tue, 21 Jun 2016 07:01:48 +0000 (00:01 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6.23

* PHP-5.5:
  Fixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow
  update NEWS
  fix tests
  fix build
  Fix bug #72455:  Heap Overflow due to integer overflows
  Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fix bug #72407: NULL Pointer Dereference at _gdScaleVert
  Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free
  Fix bug #72298 pass2_no_dither out-of-bounds access
  Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow
  Fix bug #72262 - do not overflow int
  Fix bug #72400 and #72403 - prevent signed int overflows for string lengths
  Fix bug #72275: don't allow smart_str to overflow int
  Fix bug #72340: Double Free Courruption in wddx_deserialize
  update NEWS
  Fix #66387: Stack overflow with imagefilltoborder
  Skip test which is 64bits only
  5.5.37 now

Conflicts:
configure.in
ext/mcrypt/mcrypt.c
ext/spl/spl_directory.c
main/php_version.h

8 years agoiFixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in...
Stanislav Malyshev [Tue, 21 Jun 2016 06:58:26 +0000 (23:58 -0700)]
iFixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow

8 years agoupdate NEWS
Stanislav Malyshev [Tue, 21 Jun 2016 06:45:37 +0000 (23:45 -0700)]
update NEWS

8 years agoMerge branch 'PHP-5.5.37' into PHP-5.5
Stanislav Malyshev [Tue, 21 Jun 2016 06:31:54 +0000 (23:31 -0700)]
Merge branch 'PHP-5.5.37' into PHP-5.5

* PHP-5.5.37:
  fix tests
  fix build
  Fix bug #72455:  Heap Overflow due to integer overflows
  Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
  Fix bug #72407: NULL Pointer Dereference at _gdScaleVert
  Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free
  Fix bug #72298 pass2_no_dither out-of-bounds access
  Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow
  Fix bug #72262 - do not overflow int
  Fix bug #72400 and #72403 - prevent signed int overflows for string lengths
  Fix bug #72275: don't allow smart_str to overflow int
  Fix bug #72340: Double Free Courruption in wddx_deserialize

8 years agofix tests
Stanislav Malyshev [Tue, 21 Jun 2016 05:54:55 +0000 (22:54 -0700)]
fix tests

8 years agofix build
Stanislav Malyshev [Tue, 21 Jun 2016 05:13:31 +0000 (22:13 -0700)]
fix build

8 years agoFix bug #72455: Heap Overflow due to integer overflows
Stanislav Malyshev [Tue, 21 Jun 2016 04:51:42 +0000 (21:51 -0700)]
Fix bug #72455:  Heap Overflow due to integer overflows

8 years agoFix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm...
Stanislav Malyshev [Tue, 21 Jun 2016 04:35:22 +0000 (21:35 -0700)]
Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize

8 years agoFixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
Stanislav Malyshev [Tue, 21 Jun 2016 04:26:33 +0000 (21:26 -0700)]
Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize

8 years agoMerge branch 'master' into zend_signals
Dmitry Stogov [Mon, 20 Jun 2016 19:42:18 +0000 (22:42 +0300)]
Merge branch 'master' into zend_signals

* master:
  Improved support for zend-signals.
  Use empty keys instead of _empty_ in json decoding
  update NEWS
  Fix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA)

8 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Mon, 20 Jun 2016 19:41:36 +0000 (22:41 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Use empty keys instead of _empty_ in json decoding
  update NEWS
  Fix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA)

8 years agoImproved support for zend-signals.
Dmitry Stogov [Mon, 20 Jun 2016 19:18:46 +0000 (22:18 +0300)]
Improved support for zend-signals.

8 years agoImproved support for zend-signals.
Dmitry Stogov [Mon, 20 Jun 2016 19:18:46 +0000 (22:18 +0300)]
Improved support for zend-signals.

8 years agoUse empty keys instead of _empty_ in json decoding
Jakub Zelenka [Sun, 29 May 2016 19:15:16 +0000 (20:15 +0100)]
Use empty keys instead of _empty_ in json decoding

8 years agoupdate NEWS
Anatol Belski [Mon, 20 Jun 2016 18:20:32 +0000 (20:20 +0200)]
update NEWS

8 years agoMerge branch 'PHP-7.0'
Remi Collet [Mon, 20 Jun 2016 16:45:10 +0000 (18:45 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA)

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Remi Collet [Mon, 20 Jun 2016 16:44:39 +0000 (18:44 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA)

8 years agoFix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA)
Remi Collet [Mon, 20 Jun 2016 16:43:07 +0000 (18:43 +0200)]
Fix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA)

8 years agoMerge branch 'master' into zend_signals
Dmitry Stogov [Mon, 20 Jun 2016 16:21:06 +0000 (19:21 +0300)]
Merge branch 'master' into zend_signals

* master:
  Zend signals should be installed after request startup (or regular signals may be installed before zend_signal_startup)
  notes to UPGRADING.INTERNALS

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

* 'master' of git.php.net:php-src:
  notes to UPGRADING.INTERNALS

8 years agoZend signals should be installed after request startup (or regular signals may be...
Dmitry Stogov [Mon, 20 Jun 2016 16:19:16 +0000 (19:19 +0300)]
Zend signals should be installed after request startup (or regular signals may be installed before zend_signal_startup)

8 years agonotes to UPGRADING.INTERNALS
Anatol Belski [Mon, 20 Jun 2016 16:02:51 +0000 (18:02 +0200)]
notes to UPGRADING.INTERNALS

8 years agoMerge branch 'master' into zend_signals
Dmitry Stogov [Mon, 20 Jun 2016 15:51:23 +0000 (18:51 +0300)]
Merge branch 'master' into zend_signals

* master:
  Removed wrong HANDLE_UNBLOCK_INTERRUPTIONS()
  notes to UPGRADING
  Update NEWS
  Update NEWS
  Update NEWS
  Fix #64641: imagefilledpolygon doesn't draw horizontal line

8 years agoRemoved wrong HANDLE_UNBLOCK_INTERRUPTIONS()
Dmitry Stogov [Mon, 20 Jun 2016 15:50:24 +0000 (18:50 +0300)]
Removed wrong HANDLE_UNBLOCK_INTERRUPTIONS()

8 years agonotes to UPGRADING
Anatol Belski [Mon, 20 Jun 2016 14:54:09 +0000 (16:54 +0200)]
notes to UPGRADING

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

* 'master' of git.php.net:php-src:
  Update NEWS
  Update NEWS
  Update NEWS
  Fix #64641: imagefilledpolygon doesn't draw horizontal line

8 years agoEnable Zend signals by default
Dmitry Stogov [Mon, 20 Jun 2016 14:15:04 +0000 (17:15 +0300)]
Enable Zend signals by default

8 years agoReverted chunk committed by mistake.
Dmitry Stogov [Mon, 20 Jun 2016 14:11:35 +0000 (17:11 +0300)]
Reverted chunk committed by mistake.

8 years agoMerge branch 'master' of http://git.php.net/repository/php-src
Christoph M. Becker [Mon, 20 Jun 2016 13:43:33 +0000 (15:43 +0200)]
Merge branch 'master' of http://git.php.net/repository/php-src

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

8 years agoFixed phpdbg build without --enable-zend-signals
Dmitry Stogov [Mon, 20 Jun 2016 13:32:24 +0000 (16:32 +0300)]
Fixed phpdbg build without --enable-zend-signals

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 agoProtect OPcache from termination during SHM modification.
Dmitry Stogov [Mon, 20 Jun 2016 13:03:31 +0000 (16:03 +0300)]
Protect OPcache from termination during SHM modification.

8 years agoHANDLE_BLOCK/UNBLOCK_INTERRUPTIONS() protection on inter-process data is completely...
Dmitry Stogov [Mon, 20 Jun 2016 12:50:41 +0000 (15:50 +0300)]
HANDLE_BLOCK/UNBLOCK_INTERRUPTIONS() protection on inter-process data is completely useless now.
Historicaly, these macros were introduced as a protection from execution timeout handling, but we don't need them anymore after "safe execution timeout" implementation.
These macros are still useful to protect from termination during inner process data modification, because of OS signals (e.g. SIGTERM during OPcache SHM update).

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