]> granicus.if.org Git - php/log
php
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

8 years agoSupport Unicode characters in the local part of an e-mail address.
Leo Feyer [Thu, 15 Oct 2015 09:07:25 +0000 (11:07 +0200)]
Support Unicode characters in the local part of an e-mail address.

See RFC 6531 (https://tools.ietf.org/html/rfc6531).

Encode IDNA domains.

Add the missing "Done" to the expected output.

Add the FILTER_FLAG_EMAIL_RFC6531 flag.

Fix the filter_var() call.

8 years agoFix for bug #72558, Integer overflow error within _gdContributionsAlloc()
Stanislav Malyshev [Mon, 18 Jul 2016 07:17:48 +0000 (00:17 -0700)]
Fix for bug #72558, Integer overflow error within _gdContributionsAlloc()

8 years agoMerge branch 'PHP-7.0.9' of git.php.net:php-src into PHP-7.0.9
Stanislav Malyshev [Sun, 17 Jul 2016 23:43:27 +0000 (16:43 -0700)]
Merge branch 'PHP-7.0.9' of git.php.net:php-src into PHP-7.0.9

* 'PHP-7.0.9' of git.php.net:php-src:
  update NEWS
  Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders

8 years agoFix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE
Stanislav Malyshev [Sun, 17 Jul 2016 23:34:21 +0000 (16:34 -0700)]
Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE

8 years agoFix optimization of $i = $i++
Nikita Popov [Sun, 17 Jul 2016 20:47:49 +0000 (22:47 +0200)]
Fix optimization of $i = $i++

8 years agoMerge branch 'openssl_bump_to_1_0_1'
Jakub Zelenka [Sun, 17 Jul 2016 16:28:08 +0000 (17:28 +0100)]
Merge branch 'openssl_bump_to_1_0_1'

8 years agoBump a minimal OpenSSL version to 1.0.1
Jakub Zelenka [Sun, 17 Jul 2016 16:26:29 +0000 (17:26 +0100)]
Bump a minimal OpenSSL version to 1.0.1

8 years agoBump minimal OpenSSL version to 1.0.1
Jakub Zelenka [Wed, 29 Jun 2016 20:21:50 +0000 (21:21 +0100)]
Bump minimal OpenSSL version to 1.0.1

8 years agoMerge branch 'openssl_drop_ssl2'
Jakub Zelenka [Sun, 17 Jul 2016 16:14:38 +0000 (17:14 +0100)]
Merge branch 'openssl_drop_ssl2'

8 years agoUpdate NEWS and UPGRADING with info about dropping SSL2
Jakub Zelenka [Sun, 17 Jul 2016 16:13:24 +0000 (17:13 +0100)]
Update NEWS and UPGRADING with info about dropping SSL2

8 years agoMerge RNG fixes RFC. PR #1986
Leigh [Sun, 17 Jul 2016 16:05:10 +0000 (16:05 +0000)]
Merge RNG fixes RFC. PR #1986

* rng-fixes:
  Fix legacy mode RAND_RANGE and 32/64-bit consistency
  Fix crypt salt not being converted to b64
  Make mode selection part of mt_srand()
  Use zend_bitset
  Improve array_rand distribution
  Fix some insecure usages of php_rand
  Alias rand to mt_rand
  Fix RAND_RANGE for mt_rand
  Fix mt_rand impl. Provide legacy impl. access.
  Split rand and mt_rand into separate files

8 years agoforce SSL_OP_NO_SSLv2
Remi Collet [Thu, 17 Mar 2016 14:15:30 +0000 (15:15 +0100)]
force SSL_OP_NO_SSLv2

8 years agoCleanup all SSLv2 code, whatever OpenSSL version is
Remi Collet [Thu, 17 Mar 2016 13:06:18 +0000 (14:06 +0100)]
Cleanup all SSLv2 code, whatever OpenSSL version is

8 years agoadd test
Masaki Kagaya [Sun, 1 Mar 2015 13:10:41 +0000 (22:10 +0900)]
add test

8 years agocheck the encoding of argument for mb_ereg, mb_ereg_replace, mb_ereg_search_init
Masaki Kagaya [Sun, 1 Mar 2015 12:49:10 +0000 (21:49 +0900)]
check the encoding of argument for mb_ereg, mb_ereg_replace, mb_ereg_search_init

8 years agoadd php_mb_check_encoding
Masaki Kagaya [Sun, 1 Mar 2015 12:43:09 +0000 (21:43 +0900)]
add php_mb_check_encoding

8 years agocorrect macro names
Anatol Belski [Sun, 17 Jul 2016 10:18:23 +0000 (12:18 +0200)]
correct macro names

8 years agoAvoid uncollectable cycle in sxe_property_get_adr
Nikita Popov [Sat, 16 Jul 2016 21:35:08 +0000 (23:35 +0200)]
Avoid uncollectable cycle in sxe_property_get_adr

The code was storing the created object in a property on the
created object, creating a trivial cycle. This cycle cannot be
collected (even if sxe->tmp is exposed via get_gc), because it
is never rooted (and we cannot safely manually root it).

Change the code to store the created object on the parent node
instead.

The only reason this is not showing up as a leak is that sxe->tmp
is dtor'ed in the dtor handler, which means that these objects
do get collected on shutdown -- but never earlier.

8 years agoRemove unnecessary use of sxe->tmp
Nikita Popov [Fri, 15 Jul 2016 21:35:07 +0000 (23:35 +0200)]
Remove unnecessary use of sxe->tmp

8 years agoRemove useless dtor handlers in intl
Nikita Popov [Fri, 15 Jul 2016 21:09:18 +0000 (23:09 +0200)]
Remove useless dtor handlers in intl

These are only indirections to the default handler

8 years agoFix leak if get_iterator throws but doesn't return NULL
Nikita Popov [Thu, 14 Jul 2016 20:29:04 +0000 (22:29 +0200)]
Fix leak if get_iterator throws but doesn't return NULL

8 years agoFix leak in PDO row_get_ctor
Nikita Popov [Thu, 14 Jul 2016 20:18:06 +0000 (22:18 +0200)]
Fix leak in PDO row_get_ctor

The __construct function name was leaked. Avoid this by simply
throwing directly from row_get_ctor instead of indirecting through
an actual __construct function.

8 years agoFix leak in intl collator compare function
Nikita Popov [Thu, 14 Jul 2016 20:01:13 +0000 (22:01 +0200)]
Fix leak in intl collator compare function

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Sat, 16 Jul 2016 21:03:01 +0000 (23:03 +0200)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Sat, 16 Jul 2016 21:02:34 +0000 (23:02 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
Zend/zend_gc.c

8 years agoRevert "Fixed bug #72286 (Segmentation fault During Garbage Collection)"
Nikita Popov [Sat, 16 Jul 2016 21:00:47 +0000 (23:00 +0200)]
Revert "Fixed bug #72286 (Segmentation fault During Garbage Collection)"

This reverts commit 1c84b55adea936b065a20102202bea3d1d243225.

8 years agoFix legacy mode RAND_RANGE and 32/64-bit consistency
Leigh [Sat, 16 Jul 2016 16:50:20 +0000 (16:50 +0000)]
Fix legacy mode RAND_RANGE and 32/64-bit consistency

8 years agoUn-XFAIL test case
Christoph M. Becker [Fri, 15 Jul 2016 19:05:59 +0000 (21:05 +0200)]
Un-XFAIL test case

libgd substitutes unallowed characters of XBM names (but not filenames),
depending on the locale. As we're interested in the filenames in this case
we simply ignore these differences.

8 years agoMerge branch 'PHP-7.0'
Christoph M. Becker [Fri, 15 Jul 2016 18:04:43 +0000 (20:04 +0200)]
Merge branch 'PHP-7.0'

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

8 years agoFix #72604: imagearc() ignores thickness for full arcs
Christoph M. Becker [Fri, 15 Jul 2016 17:42:26 +0000 (19:42 +0200)]
Fix #72604: imagearc() ignores thickness for full arcs

We remove the special casing for full arcs, what conforms to external libgd.

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

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 14 Jul 2016 23:09:58 +0000 (01:09 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix bug #66502: DOM document dangling reference
Christoph M. Becker [Thu, 14 Jul 2016 22:57:36 +0000 (00:57 +0200)]
Fix bug #66502: DOM document dangling reference

When we decrement the refcount of a node's document, we state that we
won't need it anymore. Therefore we can *always* set the pointer to the
document to NULL, what avoids invalid memory accesses for some edge cases
as demonstrated with the PHPT.

Original patch provided by Sean Heelan.

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Thu, 14 Jul 2016 21:22:41 +0000 (23:22 +0200)]
Merge branch 'PHP-7.0'

8 years agoFix test output
Nikita Popov [Thu, 14 Jul 2016 21:22:09 +0000 (23:22 +0200)]
Fix test output

The error is now detected earlier, so the message ends up being
different.

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Thu, 14 Jul 2016 19:41:49 +0000 (21:41 +0200)]
Merge branch 'PHP-7.0'

8 years agoFix is_callable() on abstract method via object
Nikita Popov [Thu, 14 Jul 2016 19:38:10 +0000 (21:38 +0200)]
Fix is_callable() on abstract method via object

8 years agoMerge branch 'PHP-7.0'
Dmitry Stogov [Thu, 14 Jul 2016 19:39:15 +0000 (22:39 +0300)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed bug #72286 (Segmentation fault During Garbage Collection)

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Dmitry Stogov [Thu, 14 Jul 2016 19:38:47 +0000 (22:38 +0300)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fixed bug #72286 (Segmentation fault During Garbage Collection)

8 years agoFixed bug #72286 (Segmentation fault During Garbage Collection)
Dmitry Stogov [Thu, 14 Jul 2016 19:37:25 +0000 (22:37 +0300)]
Fixed bug #72286 (Segmentation fault During Garbage Collection)

8 years agoMerge branch 'master' of git.php.net:php-src
Anatol Belski [Thu, 14 Jul 2016 19:21:35 +0000 (21:21 +0200)]
Merge branch 'master' of git.php.net:php-src

8 years agoMerge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0
Anatol Belski [Thu, 14 Jul 2016 19:21:01 +0000 (21:21 +0200)]
Merge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Thu, 14 Jul 2016 19:17:40 +0000 (21:17 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Extend libxml exports
  Updated NEWS
  Fix #69975: PHP segfaults when accessing nvarchar(max) defined columns
  Updated NEWS
  Fix bug #70480 (php_url_parse_ex() buffer overflow read)
  Update PHP 5.5 NEWS entries with CVE info

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Thu, 14 Jul 2016 19:16:07 +0000 (21:16 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Extend libxml exports
  Updated NEWS
  Fix #69975: PHP segfaults when accessing nvarchar(max) defined columns
  Updated NEWS
  Fix bug #70480 (php_url_parse_ex() buffer overflow read)
  Update PHP 5.5 NEWS entries with CVE info

8 years agoMerge branch 'PHP-5.5' into PHP-5.6
Anatol Belski [Thu, 14 Jul 2016 19:13:49 +0000 (21:13 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Extend libxml exports
  Updated NEWS
  Fix #69975: PHP segfaults when accessing nvarchar(max) defined columns
  Updated NEWS
  Fix bug #70480 (php_url_parse_ex() buffer overflow read)
  Update PHP 5.5 NEWS entries with CVE info

8 years agoExtend libxml exports
Anatol Belski [Thu, 14 Jul 2016 19:08:54 +0000 (21:08 +0200)]
Extend libxml exports

These are needed to support libxslt 1.1.29 on Windows. This libxslt version
fixes CVE-2015-7995 and for this reason needs to be used.

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Thu, 14 Jul 2016 18:46:01 +0000 (20:46 +0200)]
Merge branch 'PHP-7.0'

Conflicts:
Zend/zend_vm_execute.h

8 years agoFix bad merge
Nikita Popov [Thu, 14 Jul 2016 18:44:36 +0000 (20:44 +0200)]
Fix bad merge

In master the operand is fetched earlier, I didn't account for
that.

8 years agoFix leak if get_constructor returns NULL
Nikita Popov [Wed, 13 Jul 2016 21:39:16 +0000 (23:39 +0200)]
Fix leak if get_constructor returns NULL

8 years agoFix leaks if update_constant fails
Nikita Popov [Wed, 13 Jul 2016 21:16:55 +0000 (23:16 +0200)]
Fix leaks if update_constant fails

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Thu, 14 Jul 2016 16:39:48 +0000 (18:39 +0200)]
Merge branch 'PHP-7.0'

Conflicts:
Zend/zend_vm_execute.h

8 years agoFix leak when creating timezone with null bytes
Nikita Popov [Thu, 14 Jul 2016 15:43:29 +0000 (17:43 +0200)]
Fix leak when creating timezone with null bytes

8 years agoFix leak when dynamically calling abstract method
Nikita Popov [Thu, 14 Jul 2016 15:36:56 +0000 (17:36 +0200)]
Fix leak when dynamically calling abstract method

8 years agoFix leak of class name when printing exception backtrace
Nikita Popov [Thu, 14 Jul 2016 15:29:59 +0000 (17:29 +0200)]
Fix leak of class name when printing exception backtrace

8 years agoFix leaks in yield from error conditions
Nikita Popov [Thu, 14 Jul 2016 13:55:30 +0000 (15:55 +0200)]
Fix leaks in yield from error conditions

Conflicts:
Zend/zend_vm_execute.h

8 years agoFix leak for by-ref assign to overloaded object
Nikita Popov [Wed, 13 Jul 2016 22:08:29 +0000 (00:08 +0200)]
Fix leak for by-ref assign to overloaded object

Conflicts:
Zend/zend_vm_execute.h

8 years agoAdd missing call opcodes in cleanup_unfinished_calls()
Nikita Popov [Wed, 13 Jul 2016 21:55:19 +0000 (23:55 +0200)]
Add missing call opcodes in cleanup_unfinished_calls()

Otherwise we may leak if an exception is thrown from them.

8 years agoFix leak if throw_exception_object() fails
Nikita Popov [Wed, 13 Jul 2016 21:35:53 +0000 (23:35 +0200)]
Fix leak if throw_exception_object() fails

8 years agoMerge branch 'PHP-7.0'
Christoph M. Becker [Thu, 14 Jul 2016 15:26:32 +0000 (17:26 +0200)]
Merge branch 'PHP-7.0'

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

8 years agoFix bug #72596: imagetypes function won't advertise WEBP support
Christoph M. Becker [Thu, 14 Jul 2016 14:43:13 +0000 (16:43 +0200)]
Fix bug #72596: imagetypes function won't advertise WEBP support

We add the constant IMG_WEBP and make sure that WebP support is properly
reported by imagetypes().

8 years agoFix return from by-ref generators
Nikita Popov [Thu, 14 Jul 2016 13:44:04 +0000 (15:44 +0200)]
Fix return from by-ref generators