]> granicus.if.org Git - php/log
php
8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Wed, 20 Jul 2016 16:01:41 +0000 (18:01 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  regenerate date parser with re2c 0.13.5 to fix OSX issues

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 20 Jul 2016 16:00:53 +0000 (18:00 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  regenerate date parser with re2c 0.13.5 to fix OSX issues

8 years agoregenerate date parser with re2c 0.13.5 to fix OSX issues
Anatol Belski [Wed, 20 Jul 2016 15:57:39 +0000 (17:57 +0200)]
regenerate date parser with re2c 0.13.5 to fix OSX issues

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Wed, 20 Jul 2016 11:37:17 +0000 (13:37 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  regenerate date parser with re2c 0.13.5

8 years agoregenerate date parser with re2c 0.13.5
Anatol Belski [Wed, 20 Jul 2016 11:32:53 +0000 (13:32 +0200)]
regenerate date parser with re2c 0.13.5

8 years agoFixed arginfo
Xinchen Hui [Wed, 20 Jul 2016 10:09:17 +0000 (18:09 +0800)]
Fixed arginfo

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Wed, 20 Jul 2016 10:08:48 +0000 (18:08 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed arginfo

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Xinchen Hui [Wed, 20 Jul 2016 10:07:18 +0000 (18:07 +0800)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fixed arginfo

8 years agoFixed arginfo
Xinchen Hui [Wed, 20 Jul 2016 10:07:02 +0000 (18:07 +0800)]
Fixed arginfo

8 years agoMerge branch 'PHP-7.0'
Derick Rethans [Wed, 20 Jul 2016 09:21:19 +0000 (10:21 +0100)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Derick Rethans [Wed, 20 Jul 2016 09:21:03 +0000 (10:21 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoRegenerate with the -b flag, as we used to do.
Derick Rethans [Wed, 20 Jul 2016 09:19:53 +0000 (10:19 +0100)]
Regenerate with the -b flag, as we used to do.

Apparently, Apple's LLVM can't handle it otherwise o_O.

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Wed, 20 Jul 2016 09:01:53 +0000 (17:01 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed typo

8 years agoFixed typo
Xinchen Hui [Wed, 20 Jul 2016 09:01:42 +0000 (17:01 +0800)]
Fixed typo

8 years agoUpdate NEWs
Xinchen Hui [Wed, 20 Jul 2016 09:00:30 +0000 (17:00 +0800)]
Update NEWs

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Wed, 20 Jul 2016 09:00:09 +0000 (17:00 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed bug #72629 (Caught exception assignment to variables ignores references).

Conflicts:
main/php_version.h

8 years agoFixed bug #72629 (Caught exception assignment to variables ignores references).
Xinchen Hui [Wed, 20 Jul 2016 08:59:14 +0000 (16:59 +0800)]
Fixed bug #72629 (Caught exception assignment to variables ignores references).

8 years agoUpdate NEWS
Xinchen Hui [Wed, 20 Jul 2016 08:13:21 +0000 (16:13 +0800)]
Update NEWS

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Wed, 20 Jul 2016 08:12:49 +0000 (16:12 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed bug #72622 (array_walk + array_replace_recursive create references from nothing)

8 years agoFixed bug #72622 (array_walk + array_replace_recursive create references from nothing)
Xinchen Hui [Wed, 20 Jul 2016 08:12:37 +0000 (16:12 +0800)]
Fixed bug #72622 (array_walk + array_replace_recursive create references from nothing)

8 years agoMerge branch 'PHP-7.0'
Stanislav Malyshev [Wed, 20 Jul 2016 05:38:54 +0000 (22:38 -0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Improve fix for #72520
  #72482, revert for 5.6 for now

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Wed, 20 Jul 2016 05:38:35 +0000 (22:38 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Improve fix for #72520
  #72482, revert for 5.6 for now

Conflicts:
ext/zip/zip_stream.c

8 years agoMerge branch 'PHP-5.5' into PHP-5.6
Stanislav Malyshev [Wed, 20 Jul 2016 05:37:44 +0000 (22:37 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Improve fix for #72520

8 years agoImprove fix for #72520
Stanislav Malyshev [Wed, 20 Jul 2016 05:37:03 +0000 (22:37 -0700)]
Improve fix for #72520

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 19 Jul 2016 18:35:04 +0000 (20:35 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  update UPGRADING

8 years agoupdate UPGRADING
Anatol Belski [Tue, 19 Jul 2016 18:34:22 +0000 (20:34 +0200)]
update UPGRADING

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 19 Jul 2016 18:28:05 +0000 (20:28 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  sync NEWS

8 years agosync NEWS
Anatol Belski [Tue, 19 Jul 2016 18:27:30 +0000 (20:27 +0200)]
sync NEWS

8 years agoMerge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
Pierre Joye [Tue, 19 Jul 2016 17:18:56 +0000 (00:18 +0700)]
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6

8 years ago#72482, revert for 5.6 for now
Pierre Joye [Tue, 19 Jul 2016 17:18:25 +0000 (00:18 +0700)]
#72482, revert for 5.6 for now

8 years agoMerge branch 'PHP-7.0'
Christoph M. Becker [Tue, 19 Jul 2016 16:01:49 +0000 (18:01 +0200)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Tue, 19 Jul 2016 16:00:20 +0000 (18:00 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoUpdate NEWS
Christoph M. Becker [Tue, 19 Jul 2016 15:58:29 +0000 (17:58 +0200)]
Update NEWS

8 years agoMerge branch 'PHP-7.0'
Christoph M. Becker [Tue, 19 Jul 2016 15:50:45 +0000 (17:50 +0200)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Tue, 19 Jul 2016 15:41:16 +0000 (17:41 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #43828: broken transparency of imagearc for truecolor in blendingmode
Christoph M. Becker [Sat, 16 Jul 2016 18:42:47 +0000 (20:42 +0200)]
Fix #43828: broken transparency of imagearc for truecolor in blendingmode

No pixel of a filled arc must ever be drawn multiple times. Otherwise we get
artifacts regarding transparency. That happens with the current
implementation of gdImageFilledArc() unless gdChord or gdNoFill are set.
When gdPie is set, however, the filled arc is drawn in wedges, which are
polygons of three points, and so some overlap is natural.

To resolve the issue, we stick with the current algorithm of calculating the
wedges, but instead of drawing each polygon separately, we put the relevant
points in a large array, and draw a single polygon. That also is supposed to
improve the performance considerably.

Note that this modification will change the results when gdImageSetStyle()
or gdImageSetBrush() are used, but we believe that this modification is also
an improvement in this regard, even though it still might not make much
sense to use these functions with gdImageFilledArc().

The respective fix for libgd is
<https://github.com/libgd/libgd/commit/e7e20d6>.

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 19 Jul 2016 15:23:51 +0000 (17:23 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fix for bug #72513

8 years agoFix for bug #72513
Stanislav Malyshev [Wed, 13 Jul 2016 04:52:27 +0000 (21:52 -0700)]
Fix for bug #72513

This is applicable to 7 as well, but was somehow missing from the merge.

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 19 Jul 2016 13:07:10 +0000 (15:07 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix test out

8 years agofix test out
Anatol Belski [Tue, 19 Jul 2016 13:05:14 +0000 (15:05 +0200)]
fix test out

this test also affected by #70313 which is not in the release branch

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 19 Jul 2016 12:51:26 +0000 (14:51 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix test portability and expectation

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Tue, 19 Jul 2016 12:50:45 +0000 (14:50 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix test portability and expectation

8 years agofix test portability and expectation
Anatol Belski [Tue, 19 Jul 2016 12:45:23 +0000 (14:45 +0200)]
fix test portability and expectation

The test images for #72603 and #72618 are broken, that seems to be
the cause of different test output. Seems also to be platform dependent,
so it's not reliable to depend on the exact error output.

8 years agoMerge branch 'PHP-7.0'
Pierre Joye [Tue, 19 Jul 2016 12:35:40 +0000 (19:35 +0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  #72482, Ilegal write/read access caused by gdImageAALine overflow
  fix #72494, improve input color check and prevent issues when old gd are used, done before gd call
  improve fix #72558, free contribRow as well

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Pierre Joye [Tue, 19 Jul 2016 12:34:51 +0000 (19:34 +0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  #72482, Ilegal write/read access caused by gdImageAALine overflow

8 years ago#72482, Ilegal write/read access caused by gdImageAALine overflow
Pierre Joye [Tue, 19 Jul 2016 12:34:07 +0000 (19:34 +0700)]
#72482, Ilegal write/read access caused by gdImageAALine overflow

8 years agomerge conflict
Pierre Joye [Tue, 19 Jul 2016 11:55:09 +0000 (18:55 +0700)]
merge conflict

8 years agofix #72494, improve input color check and prevent issues when old gd are used, done...
Pierre Joye [Tue, 19 Jul 2016 11:23:51 +0000 (18:23 +0700)]
fix #72494, improve input color check and prevent issues when old gd are used, done before gd call

8 years agoMerge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
Pierre Joye [Tue, 19 Jul 2016 09:34:55 +0000 (16:34 +0700)]
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6

8 years agoMerge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0
Pierre Joye [Tue, 19 Jul 2016 09:34:15 +0000 (16:34 +0700)]
Merge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Pierre Joye [Tue, 19 Jul 2016 09:33:38 +0000 (16:33 +0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  improve fix #72558, free contribRow as well

8 years agoimprove fix #72558, free contribRow as well
Pierre Joye [Tue, 19 Jul 2016 09:33:17 +0000 (16:33 +0700)]
improve fix #72558, free contribRow as well

8 years agoMerge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0
Stanislav Malyshev [Tue, 19 Jul 2016 08:57:40 +0000 (01:57 -0700)]
Merge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0

* 'PHP-7.0' of git.php.net:php-src:

8 years agoMerge branch 'PHP-7.0'
Stanislav Malyshev [Tue, 19 Jul 2016 08:57:08 +0000 (01:57 -0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  improve fix #72558, while (u>=0) with unsigned int will always be true
  improve fix #72558, while (u>=0) with unsigned int will always be true

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Tue, 19 Jul 2016 08:56:57 +0000 (01:56 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  improve fix #72558, while (u>=0) with unsigned int will always be true
  improve fix #72558, while (u>=0) with unsigned int will always be true

8 years agoMerge branch 'PHP-5.5' into PHP-5.6
Stanislav Malyshev [Tue, 19 Jul 2016 08:56:49 +0000 (01:56 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  improve fix #72558, while (u>=0) with unsigned int will always be true

8 years agoimprove fix #72558, while (u>=0) with unsigned int will always be true
Pierre Joye [Tue, 19 Jul 2016 08:51:43 +0000 (15:51 +0700)]
improve fix #72558, while (u>=0) with unsigned int will always be true

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Pierre Joye [Tue, 19 Jul 2016 08:53:25 +0000 (15:53 +0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  improve fix #72558, while (u>=0) with unsigned int will always be true

8 years agoimprove fix #72558, while (u>=0) with unsigned int will always be true
Pierre Joye [Tue, 19 Jul 2016 08:51:43 +0000 (15:51 +0700)]
improve fix #72558, while (u>=0) with unsigned int will always be true

8 years agoMerge branch 'PHP-7.0'
Stanislav Malyshev [Tue, 19 Jul 2016 08:47:59 +0000 (01:47 -0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fix memory leak

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Tue, 19 Jul 2016 08:47:48 +0000 (01:47 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix memory leak

8 years agoMerge branch 'PHP-5.5' into PHP-5.6
Stanislav Malyshev [Tue, 19 Jul 2016 08:47:40 +0000 (01:47 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix memory leak

8 years agoFix memory leak
Stanislav Malyshev [Tue, 19 Jul 2016 08:47:27 +0000 (01:47 -0700)]
Fix memory leak

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

* PHP-7.0: (27 commits)
  fix #72519, possible OOB using imagegif
  fix #72512, invalid read or write for palette image when invalid transparent index is used
  Apparently some envs miss SIZE_MAX
  Fix tests
  Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment
  Partial fix for bug #72613 - do not allow reading past error read
  Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t
  Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c
  Fix for bug #72558, Integer overflow error within _gdContributionsAlloc()
  Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE
  update NEWS
  Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders
  Fix bug #72562 - destroy var_hash properly
  Fix bug #72551 and bug #72552 - check before converting size_t->int
  Fix bug #72541 - size_t overflow lead to heap corruption
  Fix bug #72533 (locale_accept_from_http out-of-bounds access)
  Fix fir bug #72520
  Fix for bug #72513
  Fix for bug #72513
  CS fix and comments with bug ID
  ...

Conflicts:
ext/standard/basic_functions.c

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Tue, 19 Jul 2016 08:35:58 +0000 (01:35 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix #72519, possible OOB using imagegif
  fix #72512, invalid read or write for palette image when invalid transparent index is used
  Apparently some envs miss SIZE_MAX
  Fix tests
  Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment
  Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t
  Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c
  Fix for bug #72558, Integer overflow error within _gdContributionsAlloc()
  Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE
  Fix bug #72562 - destroy var_hash properly
  Fix bug #72533 (locale_accept_from_http out-of-bounds access)
  Fix fir bug #72520
  Fix for bug #72513
  Fix for bug #72513
  CS fix and comments with bug ID
  Fix for HTTP_PROXY issue.
  5.6.24RC1
  add tests for bug #72512
  Fixed bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access
  Fixed bug #72479 - same as #72434

Conflicts:
Zend/zend_virtual_cwd.c
ext/bz2/bz2.c
ext/exif/exif.c
ext/session/session.c
ext/snmp/snmp.c
ext/standard/basic_functions.c
main/SAPI.c
main/php_variables.c

8 years agoMerge branch 'PHP-7.0.9' into PHP-7.0
Stanislav Malyshev [Tue, 19 Jul 2016 08:08:18 +0000 (01:08 -0700)]
Merge branch 'PHP-7.0.9' into PHP-7.0

* PHP-7.0.9:
  Partial fix for bug #72613 - do not allow reading past error read
  update NEWS
  Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders
  Fix bug #72551 and bug #72552 - check before converting size_t->int
  Fix bug #72541 - size_t overflow lead to heap corruption
  fix possible optimization bug
  set versions

Conflicts:
configure.in
ext/pdo_pgsql/tests/bug72570.phpt
main/php_version.h

8 years agoMerge branch 'PHP-5.5' into PHP-5.6
Stanislav Malyshev [Tue, 19 Jul 2016 07:53:08 +0000 (00:53 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  fix #72519, possible OOB using imagegif
  fix #72512, invalid read or write for palette image when invalid transparent index is used
  Apparently some envs miss SIZE_MAX
  Fix tests
  Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment
  Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t
  Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c
  Fix for bug #72558, Integer overflow error within _gdContributionsAlloc()
  Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE
  Fix bug #72562 - destroy var_hash properly
  Fix bug #72533 (locale_accept_from_http out-of-bounds access)
  Fix fir bug #72520
  Fix for bug #72513
  CS fix and comments with bug ID
  Fix for HTTP_PROXY issue.
  add tests for bug #72512
  Fixed bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access
  Fixed bug #72479 - same as #72434

Conflicts:
ext/bz2/bz2.c
main/SAPI.c
main/php_variables.c

8 years agoMerge branch 'PHP-5.6.24' into PHP-5.6
Stanislav Malyshev [Tue, 19 Jul 2016 07:51:27 +0000 (00:51 -0700)]
Merge branch 'PHP-5.6.24' into PHP-5.6

* PHP-5.6.24:
  Fix for bug #72513
  5.6.24RC1

Conflicts:
configure.in
main/php_version.h

8 years agoMerge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
Stanislav Malyshev [Tue, 19 Jul 2016 07:44:08 +0000 (00:44 -0700)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5

* 'PHP-5.5' of git.php.net:php-src:
  fix #72519, possible OOB using imagegif

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 19 Jul 2016 07:43:02 +0000 (09:43 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix #72519, possible OOB using imagegif

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Tue, 19 Jul 2016 07:42:28 +0000 (09:42 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix #72519, possible OOB using imagegif

8 years agoMerge branch 'PHP-5.5' into PHP-5.6
Anatol Belski [Tue, 19 Jul 2016 07:40:26 +0000 (09:40 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  fix #72519, possible OOB using imagegif

8 years agofix #72519, possible OOB using imagegif
Pierre Joye [Tue, 19 Jul 2016 07:11:44 +0000 (14:11 +0700)]
fix #72519, possible OOB using imagegif

8 years agofix #72512, invalid read or write for palette image when invalid transparent index...
Pierre Joye [Tue, 19 Jul 2016 06:37:23 +0000 (13:37 +0700)]
fix #72512, invalid read or write for palette image when invalid transparent index is used

Conflicts:
ext/gd/libgd/gd.c

8 years agofix #72519, possible OOB using imagegif
Pierre Joye [Tue, 19 Jul 2016 00:11:44 +0000 (07:11 +0700)]
fix #72519, possible OOB using imagegif

fix #72519, possible OOB using imagegif

8 years agoMerge branch 'PHP-7.0'
Pierre Joye [Tue, 19 Jul 2016 07:16:32 +0000 (14:16 +0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix #72519, possible OOB using imagegif

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Pierre Joye [Tue, 19 Jul 2016 07:16:20 +0000 (14:16 +0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix #72519, possible OOB using imagegif

8 years agoMerge branch 'PHP-5.5' into PHP-5.6
Pierre Joye [Tue, 19 Jul 2016 07:16:01 +0000 (14:16 +0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  fix #72519, possible OOB using imagegif

8 years agoApparently some envs miss SIZE_MAX
Stanislav Malyshev [Tue, 19 Jul 2016 07:13:25 +0000 (00:13 -0700)]
Apparently some envs miss SIZE_MAX

8 years agofix #72519, possible OOB using imagegif
Pierre Joye [Tue, 19 Jul 2016 07:11:44 +0000 (14:11 +0700)]
fix #72519, possible OOB using imagegif

8 years agoMerge branch 'PHP-7.0'
Pierre Joye [Tue, 19 Jul 2016 06:44:11 +0000 (13:44 +0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix #72512, invalid read or write for palette image when invalid transparent index is used

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Pierre Joye [Tue, 19 Jul 2016 06:40:34 +0000 (13:40 +0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix #72512, invalid read or write for palette image when invalid transparent index is used

8 years agoMerge branch 'PHP-5.5' into PHP-5.6
Pierre Joye [Tue, 19 Jul 2016 06:39:46 +0000 (13:39 +0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  fix #72512, invalid read or write for palette image when invalid transparent index is used

8 years agofix #72512, invalid read or write for palette image when invalid transparent index...
Pierre Joye [Tue, 19 Jul 2016 06:37:23 +0000 (13:37 +0700)]
fix #72512, invalid read or write for palette image when invalid transparent index is used

8 years agoMerge branch 'PHP-5.5.38' into PHP-5.5
Stanislav Malyshev [Tue, 19 Jul 2016 06:32:38 +0000 (23:32 -0700)]
Merge branch 'PHP-5.5.38' into PHP-5.5

* PHP-5.5.38:
  Fix tests
  Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment
  Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t
  Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c
  Fix for bug #72558, Integer overflow error within _gdContributionsAlloc()
  Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE
  Fix bug #72562 - destroy var_hash properly
  Fix bug #72533 (locale_accept_from_http out-of-bounds access)
  Fix fir bug #72520
  Fix for bug #72513
  CS fix and comments with bug ID
  Fix for HTTP_PROXY issue.
  add tests for bug #72512
  Fixed bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access
  Fixed bug #72479 - same as #72434

8 years agoFix tests
Stanislav Malyshev [Tue, 19 Jul 2016 06:30:51 +0000 (23:30 -0700)]
Fix tests

8 years agoFix bug #72618: NULL Pointer Dereference in exif_process_user_comment
Stanislav Malyshev [Tue, 19 Jul 2016 06:21:51 +0000 (23:21 -0700)]
Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment

8 years agoPartial fix for bug #72613 - do not allow reading past error read
Stanislav Malyshev [Tue, 19 Jul 2016 06:01:10 +0000 (23:01 -0700)]
Partial fix for bug #72613 - do not allow reading past error read

8 years agoPartial fix for bug #72613 - do not treat negative returns from bz2 as size_t
Stanislav Malyshev [Tue, 19 Jul 2016 05:20:45 +0000 (22:20 -0700)]
Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t

8 years agoFix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c
Stanislav Malyshev [Tue, 19 Jul 2016 04:44:39 +0000 (21:44 -0700)]
Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c

8 years agoadd missing header to fix build
Anatol Belski [Mon, 18 Jul 2016 23:29:03 +0000 (01:29 +0200)]
add missing header to fix build

8 years agoMerge branch 'PHP-7.0'
Christoph M. Becker [Mon, 18 Jul 2016 22:53:46 +0000 (00:53 +0200)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Mon, 18 Jul 2016 22:46:24 +0000 (00:46 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

# Resolved conflicts:
# ext/gd/gd.c

8 years agoMerge branch 'pull-request/1991' into PHP-5.6
Christoph M. Becker [Mon, 18 Jul 2016 22:35:14 +0000 (00:35 +0200)]
Merge branch 'pull-request/1991' into PHP-5.6

8 years agoFix #70315: 500 Server Error but page is fully rendered
Christoph M. Becker [Thu, 7 Jul 2016 12:47:55 +0000 (14:47 +0200)]
Fix #70315: 500 Server Error but page is fully rendered

That happens because the external libgd uses other error codes than PHP
(and the bundled libgd), but the libgd error codes are simply forwarded
to php_verror(). We fix that by properly mapping libgd errors to PHP errors.

8 years agoIncrease array_rand() rehashing treshold
Nikita Popov [Mon, 18 Jul 2016 21:40:07 +0000 (23:40 +0200)]
Increase array_rand() rehashing treshold

From 3/8 to 3/4. I was thinking in terms of nTableSize, where a
requirement > 1/2 is not tenable. However, we're actually working
with nNumUsed, in which case more than 1/4 tombstones should be
quite unusual.

8 years agomake constant name more descriptive
Anatol Belski [Mon, 18 Jul 2016 21:32:46 +0000 (23:32 +0200)]
make constant name more descriptive

8 years agoOptimize the n=1 case of array_rand()
Nikita Popov [Mon, 18 Jul 2016 21:12:07 +0000 (23:12 +0200)]
Optimize the n=1 case of array_rand()

8 years agoupdate NEWS and UPGRADING
Anatol Belski [Mon, 18 Jul 2016 21:04:22 +0000 (23:04 +0200)]
update NEWS and UPGRADING

8 years agofix regex decls and c89 compat
Anatol Belski [Mon, 18 Jul 2016 20:28:04 +0000 (22:28 +0200)]
fix regex decls and c89 compat