]> granicus.if.org Git - php/log
php
6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sat, 12 Jan 2019 21:14:35 +0000 (22:14 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Update SDK version for AppVeyor

6 years agoUpdate SDK version for AppVeyor
Anatol Belski [Sat, 12 Jan 2019 21:13:14 +0000 (22:13 +0100)]
Update SDK version for AppVeyor

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 11 Jan 2019 09:55:26 +0000 (10:55 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix rl_completion_matches detection
Ondřej Surý [Mon, 17 Dec 2018 09:56:06 +0000 (09:56 +0000)]
Fix rl_completion_matches detection

Also fix a typo when checking for rl_on_new_line in readline library.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 11 Jan 2019 09:25:32 +0000 (10:25 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix bug #77361 (configure fails on 64-bit AIX when opcache enabled)
Kevin Adler [Thu, 27 Dec 2018 19:54:08 +0000 (13:54 -0600)]
Fix bug #77361 (configure fails on 64-bit AIX when opcache enabled)

In f9048300123, support for GNU Hurd was added to the opcache and
the configure check to ensure the opcache knows the flock struct
layout prior to building was changed check for two cases: BSD layout
and Linux layout. All the existing hard-coded cases in
ZendAccelerator.h follow these two cases, except for 64-bit AIX.
This means that even though building on 64-bit AIX would work,
the configure script refuses to continue.

Add a new configure check for the 64-bit AIX case and a new
compiler definition HAVE_FLOCK_AIX64. Now that all the cases are
covered, simplify the ifdef logic around these three HAVE_FLOCK_*
macros:
- The macOS and the various BSD flavors fall under HAVE_FLOCK_BSD
- Linux, HP-UX, GNU Hurd, 32-bit AIX, and SVR4 environments
  fall under HAVE_FLOCK_LINUX
- 64-bit AIX falls under HAVE_FLOCK_AIX64

The only difference between the existing HAVE_FLOCK_LINUX and
the hard-coded Linux/HP-UX/Hurd case is that the latter
initialized the 5th member to 0, but since the C standard already
says that un-initialized members will be initialized to 0,
it's effectively the same.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Jakub Zelenka [Thu, 10 Jan 2019 20:16:06 +0000 (20:16 +0000)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix cleaning up after openssl_pkcs7_verify_basic test
Alexander Kurilo [Thu, 6 Dec 2018 21:07:18 +0000 (00:07 +0300)]
Fix cleaning up after openssl_pkcs7_verify_basic test

6 years agoGenerate certs for openssl tests on the fly
Alexander Kurilo [Sun, 2 Dec 2018 14:08:01 +0000 (17:08 +0300)]
Generate certs for openssl tests on the fly

The idea is to create an easy way to provide a certificate that never
expires. In order to make it cross-platform, PHP is used rather than
openssl CLI app. Using openssl to generate certificates for tests that
test openssl might be not the best idea but pros seem to outweight cons
that this "recursice dependency" adds

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 10 Jan 2019 15:14:56 +0000 (16:14 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #73281: imagescale(…, IMG_BILINEAR_FIXED) can cause black border

6 years agoFix #73281: imagescale(…, IMG_BILINEAR_FIXED) can cause black border
Christoph M. Becker [Thu, 10 Jan 2019 15:11:23 +0000 (16:11 +0100)]
Fix #73281: imagescale(…, IMG_BILINEAR_FIXED) can cause black border

We port the upstream fixes for libgd/libgd#329 and libgd/libgd#224.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Thu, 10 Jan 2019 13:06:49 +0000 (14:06 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77272: imagescale() may return image resource on failure

6 years agoFix #77272: imagescale() may return image resource on failure
Christoph M. Becker [Thu, 10 Jan 2019 13:03:07 +0000 (14:03 +0100)]
Fix #77272: imagescale() may return image resource on failure

`_gdScaleHoriz()` and `_gdScaleVert()` may fail, but don't signal
failure since they are void functions.  We change that according to
upstream libgd.

We also remove the unused `Scale()` function, which doesn't exist in
upstream libgd either, right away.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 10 Jan 2019 09:57:13 +0000 (10:57 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #77439
Nikita Popov [Thu, 10 Jan 2019 09:55:19 +0000 (10:55 +0100)]
Fixed bug #77439

6 years agoFixed bug #77434
Nikita Popov [Thu, 10 Jan 2019 09:25:55 +0000 (10:25 +0100)]
Fixed bug #77434

Mark arrays containing partial arrays as partial. This was already
done for the ADD_ARRAY_ELEMENT case, but not for ASSIGN_DIM.

6 years agoIncase of invalid read
Xinchen Hui [Thu, 10 Jan 2019 06:50:39 +0000 (14:50 +0800)]
Incase of invalid read

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 9 Jan 2019 15:16:47 +0000 (16:16 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Revert visibility

6 years agoRevert visibility
Andrey Hristov [Fri, 4 Jan 2019 09:37:54 +0000 (11:37 +0200)]
Revert visibility

(cherry picked from commit 71ffae9605a0b19f4c7a76d317276c934a767a65)

6 years agoSync NEWS with 7.3.1
Christoph M. Becker [Wed, 9 Jan 2019 10:46:48 +0000 (11:46 +0100)]
Sync NEWS with 7.3.1

All these bugs are fixed in PHP-7.3.1 already.

6 years agoFixed bug #77289
Lauri Kenttä [Wed, 9 Jan 2019 08:50:26 +0000 (09:50 +0100)]
Fixed bug #77289

Use mysqlnd_restart_psession and mysqlnd_end_psession in PDO MySQL.
This makes sure we free last_message while ZMM is still live.

6 years agoMake operator swapping depend on IGNORE_OVERLOADING flag
Nikita Popov [Wed, 9 Jan 2019 08:26:49 +0000 (09:26 +0100)]
Make operator swapping depend on IGNORE_OVERLOADING flag

Add MUL back to the list and instead make the entire optimization
depend on IGNORE_OVERLOADING, which is there exactly so we can make
these kinds of assumptions.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Sara Golemon [Tue, 8 Jan 2019 19:20:18 +0000 (14:20 -0500)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Bump for 7.1.27

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Sara Golemon [Tue, 8 Jan 2019 19:19:37 +0000 (14:19 -0500)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Bump for 7.1.27

6 years agoBump for 7.1.27
Sara Golemon [Tue, 8 Jan 2019 19:17:43 +0000 (14:17 -0500)]
Bump for 7.1.27

6 years agoFixed bug #77266 (Assertion failed in dce_live_ranges)
Xinchen Hui [Tue, 8 Jan 2019 11:17:46 +0000 (19:17 +0800)]
Fixed bug #77266 (Assertion failed in dce_live_ranges)

6 years agoFixed bug #77428
Nikita Popov [Tue, 8 Jan 2019 09:21:01 +0000 (10:21 +0100)]
Fixed bug #77428

mb_ereg_replace historically has not supported escaping backslashes
with backslashes. Go back to that behavior for BC reasons.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 8 Jan 2019 08:38:02 +0000 (09:38 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoDon't swap operands of ZEND_MUL
Nikita Popov [Tue, 8 Jan 2019 08:36:48 +0000 (09:36 +0100)]
Don't swap operands of ZEND_MUL

If this is used with operator overloading, then the operation does
not necessarily commute (for example, matrix multiplication).

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Tue, 8 Jan 2019 08:34:05 +0000 (09:34 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  cleanup merge

6 years agocleanup merge
Remi Collet [Tue, 8 Jan 2019 08:33:41 +0000 (09:33 +0100)]
cleanup merge

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 8 Jan 2019 08:26:31 +0000 (09:26 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoPrefix error_code with underscore in FastZPP implementation
twosee [Tue, 8 Jan 2019 08:24:51 +0000 (09:24 +0100)]
Prefix error_code with underscore in FastZPP implementation

To avoid conflicts with parameter names.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Derick Rethans [Mon, 7 Jan 2019 12:48:49 +0000 (12:48 +0000)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoUpdate tests due to data changes in tzdata 2018i
Derick Rethans [Mon, 7 Jan 2019 12:48:42 +0000 (12:48 +0000)]
Update tests due to data changes in tzdata 2018i

6 years agoFix NEWS
Christoph M. Becker [Mon, 7 Jan 2019 12:11:04 +0000 (13:11 +0100)]
Fix NEWS

The fixes for bug #77359 and #77360 have been ported to PHP-7.3.1, and
the release has been postponed by one week.

6 years agoUpdated to version 2018.9 (2018i)
Derick Rethans [Mon, 7 Jan 2019 11:50:16 +0000 (11:50 +0000)]
Updated to version 2018.9 (2018i)

6 years agoEmpty merge
Derick Rethans [Mon, 7 Jan 2019 11:50:16 +0000 (11:50 +0000)]
Empty merge

6 years agoUpdated to version 2018.9 (2018i)
Derick Rethans [Mon, 7 Jan 2019 11:50:14 +0000 (11:50 +0000)]
Updated to version 2018.9 (2018i)

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Mon, 7 Jan 2019 10:12:46 +0000 (11:12 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] fix NEWS

6 years ago[ci skip] fix NEWS
Remi Collet [Mon, 7 Jan 2019 10:12:13 +0000 (11:12 +0100)]
[ci skip] fix NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Mon, 7 Jan 2019 10:02:58 +0000 (11:02 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] fix NEWS

6 years ago[ci skip] fix NEWS
Remi Collet [Mon, 7 Jan 2019 10:02:40 +0000 (11:02 +0100)]
[ci skip] fix NEWS

6 years agoFix one issue reported in bug #77310
Nikita Popov [Mon, 7 Jan 2019 08:58:59 +0000 (09:58 +0100)]
Fix one issue reported in bug #77310

SCCP did not handle array ASSIGN_* with a BOT operand correctly.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Mon, 7 Jan 2019 09:04:16 +0000 (01:04 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Still leaking for some reason, XFAIL for now, I'll look into it later.

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Mon, 7 Jan 2019 09:03:26 +0000 (01:03 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Still leaking for some reason, XFAIL for now, I'll look into it later.

6 years agoStill leaking for some reason, XFAIL for now, I'll look into it later.
Stanislav Malyshev [Mon, 7 Jan 2019 09:03:04 +0000 (01:03 -0800)]
Still leaking for some reason, XFAIL for now, I'll look into it later.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Mon, 7 Jan 2019 07:34:46 +0000 (23:34 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
  Add NEWS
  [ci skip] Add NEWS
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Mon, 7 Jan 2019 07:34:02 +0000 (23:34 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
  Add NEWS
  [ci skip] Add NEWS
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoMerge branch 'PHP-5.6' into PHP-7.1
Stanislav Malyshev [Mon, 7 Jan 2019 07:32:36 +0000 (23:32 -0800)]
Merge branch 'PHP-5.6' into PHP-7.1

* PHP-5.6:
  Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
  [ci skip] Add NEWS
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoFix bug #77418 - Heap overflow in utf32be_mbc_to_code
Stanislav Malyshev [Mon, 7 Jan 2019 07:31:15 +0000 (23:31 -0800)]
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Sun, 6 Jan 2019 21:50:28 +0000 (13:50 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix tests - newer versions check Unicode
  Add NEWS
  Fix test

6 years agoFix tests - newer versions check Unicode
Stanislav Malyshev [Sun, 6 Jan 2019 21:28:30 +0000 (13:28 -0800)]
Fix tests - newer versions check Unicode

6 years agoAdd NEWS
Stanislav Malyshev [Sun, 6 Jan 2019 21:11:55 +0000 (13:11 -0800)]
Add NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Sun, 6 Jan 2019 21:05:49 +0000 (13:05 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Add NEWS

6 years agoAdd NEWS
Stanislav Malyshev [Sun, 6 Jan 2019 21:04:51 +0000 (13:04 -0800)]
Add NEWS

6 years agoAdd NEWS
Stanislav Malyshev [Sun, 6 Jan 2019 21:04:51 +0000 (13:04 -0800)]
Add NEWS

6 years ago[ci skip] Add NEWS
Stanislav Malyshev [Sun, 6 Jan 2019 21:03:38 +0000 (13:03 -0800)]
[ci skip] Add NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Sun, 6 Jan 2019 20:54:09 +0000 (12:54 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix test

6 years agoFix test
Stanislav Malyshev [Sun, 6 Jan 2019 20:30:44 +0000 (12:30 -0800)]
Fix test

6 years agoFix #77367: Negative size parameter in mb_split
Christoph M. Becker [Sat, 29 Dec 2018 13:17:23 +0000 (14:17 +0100)]
Fix #77367: Negative size parameter in mb_split

When adding the last element to the result value of `mb_split`, the
`chunk_pos` may point beyond the end of the string, in which case the
unsigned `n` would underflow.  Therefore, we check whether this is the
case in the first place, and only calculate `n` otherwise.  Since `n`
is no longer used outside the block, we move its declaration inside.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Stanislav Malyshev [Sun, 6 Jan 2019 20:23:53 +0000 (12:23 -0800)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77369 - memcpy with negative length via crafted DNS response
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Stanislav Malyshev [Sun, 6 Jan 2019 19:57:16 +0000 (11:57 -0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix #77369 - memcpy with negative length via crafted DNS response
  Fix more issues with encodilng length
  Fix #77270: imagecolormatch Out Of Bounds Write on Heap
  Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)
  Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
  Fix bug #77370 - check that we do not read past buffer end when parsing multibytes
  Fix #77269: Potential unsigned underflow in gdImageScale
  Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
  Fix bug #77242 (heap out of bounds read in xmlrpc_decode())
  Regenerate certs for openssl tests

6 years agoFix #77369 - memcpy with negative length via crafted DNS response
Stanislav Malyshev [Sun, 30 Dec 2018 04:39:08 +0000 (20:39 -0800)]
Fix #77369 - memcpy with negative length via crafted DNS response

6 years agoFix more issues with encodilng length
Stanislav Malyshev [Wed, 2 Jan 2019 08:36:30 +0000 (00:36 -0800)]
Fix more issues with encodilng length

Should fix bug #77381, bug #77382, bug #77385, bug #77394.

6 years agoFix #77270: imagecolormatch Out Of Bounds Write on Heap
Christoph M. Becker [Sun, 30 Dec 2018 12:59:26 +0000 (13:59 +0100)]
Fix #77270: imagecolormatch Out Of Bounds Write on Heap

At least some of the image reading functions may return images which
use color indexes greater than or equal to im->colorsTotal.  We cater
to this by always using a buffer size which is sufficient for
`gdMaxColors` in `gdImageColorMatch()`.

6 years agoFix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Stanislav Malyshev [Wed, 2 Jan 2019 01:15:20 +0000 (17:15 -0800)]
Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)

6 years agoFix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Stanislav Malyshev [Sun, 30 Dec 2018 04:06:08 +0000 (20:06 -0800)]
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)

6 years agoFix bug #77370 - check that we do not read past buffer end when parsing multibytes
Stanislav Malyshev [Sun, 30 Dec 2018 03:51:24 +0000 (19:51 -0800)]
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes

6 years agoFix #77269: Potential unsigned underflow in gdImageScale
Christoph M. Becker [Wed, 12 Dec 2018 15:00:59 +0000 (16:00 +0100)]
Fix #77269: Potential unsigned underflow in gdImageScale

Belatedly, we're porting the respective upstream patch[1].

[1] <https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35>

6 years agoFix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Stanislav Malyshev [Sun, 30 Dec 2018 02:25:37 +0000 (18:25 -0800)]
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)

6 years agoFix bug #77242 (heap out of bounds read in xmlrpc_decode())
Stanislav Malyshev [Sun, 30 Dec 2018 01:56:36 +0000 (17:56 -0800)]
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())

6 years agoRegenerate certs for openssl tests
Alexander Kurilo [Mon, 31 Dec 2018 09:19:36 +0000 (12:19 +0300)]
Regenerate certs for openssl tests

6 years agoFix more issues with encodilng length
Stanislav Malyshev [Wed, 2 Jan 2019 08:36:30 +0000 (00:36 -0800)]
Fix more issues with encodilng length

Should fix bug #77381, bug #77382, bug #77385, bug #77394.

6 years agoFix #77270: imagecolormatch Out Of Bounds Write on Heap
Christoph M. Becker [Sun, 30 Dec 2018 12:59:26 +0000 (13:59 +0100)]
Fix #77270: imagecolormatch Out Of Bounds Write on Heap

At least some of the image reading functions may return images which
use color indexes greater than or equal to im->colorsTotal.  We cater
to this by always using a buffer size which is sufficient for
`gdMaxColors` in `gdImageColorMatch()`.

6 years agoFix bug #77380 (Global out of bounds read in xmlrpc base64 code)
Stanislav Malyshev [Wed, 2 Jan 2019 01:15:20 +0000 (17:15 -0800)]
Fix bug #77380  (Global out of bounds read in xmlrpc base64 code)

6 years agoFix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
Stanislav Malyshev [Sun, 30 Dec 2018 04:06:08 +0000 (20:06 -0800)]
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)

6 years agoFix bug #77370 - check that we do not read past buffer end when parsing multibytes
Stanislav Malyshev [Sun, 30 Dec 2018 03:51:24 +0000 (19:51 -0800)]
Fix bug #77370 - check that we do not read past buffer end when parsing multibytes

6 years agoFix #77269: Potential unsigned underflow in gdImageScale
Christoph M. Becker [Wed, 12 Dec 2018 15:00:59 +0000 (16:00 +0100)]
Fix #77269: Potential unsigned underflow in gdImageScale

Belatedly, we're porting the respective upstream patch[1].

[1] <https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35>

6 years agoFix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
Stanislav Malyshev [Sun, 30 Dec 2018 02:25:37 +0000 (18:25 -0800)]
Fix bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)

6 years agoFix bug #77242 (heap out of bounds read in xmlrpc_decode())
Stanislav Malyshev [Sun, 30 Dec 2018 01:56:36 +0000 (17:56 -0800)]
Fix bug #77242 (heap out of bounds read in xmlrpc_decode())

6 years agoFix bug #77410
Nikita Popov [Fri, 4 Jan 2019 11:40:28 +0000 (12:40 +0100)]
Fix bug #77410

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 4 Jan 2019 08:53:30 +0000 (09:53 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFix self::class inside constant in global scope
Nikita Popov [Fri, 4 Jan 2019 08:52:04 +0000 (09:52 +0100)]
Fix self::class inside constant in global scope

Previously this triggered an assertion failure. The behavior is
not quite correct, in that self::class should generate an exception
if there is no self, but returns an empty string here. Fixing that
would be a bit too intrusive for the 7.2 branch.

6 years agoAdd NEWS entry for bug #77357
Nikita Popov [Fri, 4 Jan 2019 08:07:32 +0000 (09:07 +0100)]
Add NEWS entry for bug #77357

The fix has been confirmed.

[ci skip]

6 years agoPossible fix for bug #77357
Nikita Popov [Thu, 3 Jan 2019 09:24:48 +0000 (10:24 +0100)]
Possible fix for bug #77357

Don't invoke CPUID with feature levels above the supported maximum.
In this case CPUID will return the highest supported basic information
leaf, which will have unrelated bits in the relevant positions.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 3 Jan 2019 08:40:14 +0000 (09:40 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #77273
Nikita Popov [Thu, 3 Jan 2019 08:40:07 +0000 (09:40 +0100)]
Fixed bug #77273

6 years agoRegenerate certs for openssl tests
Alexander Kurilo [Mon, 31 Dec 2018 09:19:36 +0000 (12:19 +0300)]
Regenerate certs for openssl tests

6 years agoPossible fix for bug #77287
Nikita Popov [Wed, 2 Jan 2019 12:58:44 +0000 (13:58 +0100)]
Possible fix for bug #77287

The cache size could be off by 4, if we're on a 32-bit system and
the slot had to be bumped for alignment reasons.

I wasn't able to reproduce the issue reported in bug #77287, but I
think this might be the cause.

6 years agoDisable ifuncs on FreeBSD
Nikita Popov [Wed, 2 Jan 2019 11:59:22 +0000 (12:59 +0100)]
Disable ifuncs on FreeBSD

Intended as at least a preliminary fix for bug #77284. If/when we
figure out what exactly the issue is, we can relax this.

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Wed, 2 Jan 2019 10:34:15 +0000 (11:34 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoPartial fix for bug #75426
Nikita Popov [Wed, 2 Jan 2019 10:32:48 +0000 (11:32 +0100)]
Partial fix for bug #75426

This does not print the exact line of the comma, but rather the line
of the previous element. This should generally be "good enough", as
the line number is close (off by one) to the actual issue now.
Previously it would point to the start of the array, which may be
very far away.

6 years agoskeleton: support PHP 7.2
Vincent JARDIN [Tue, 1 Jan 2019 23:06:29 +0000 (00:06 +0100)]
skeleton: support PHP 7.2

skeleton can still be leveraged with older PHP releases, including
PHP 7.2.

I wanted to add this capability since PHP 7.2 is still widely provided
with most Linux distributions.

I am using ext_skel.php on a vanilla Ubuntu 18.04 and Windows
in order to illustrate how to develop a PHP extension for both
OS using the default tools provided by the distributions.
  see: https://github.com/vjardin/php-bonjour

6 years agoUpdate NEWS
Anatol Belski [Wed, 2 Jan 2019 10:02:29 +0000 (11:02 +0100)]
Update NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 2 Jan 2019 10:01:34 +0000 (11:01 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fixed bug #75684 In mysqlnd_ext_plugin.h the plugin methods family has no external visibility

6 years agoFixed bug #75684 In mysqlnd_ext_plugin.h the plugin methods family has no external...
Anatol Belski [Wed, 2 Jan 2019 09:56:35 +0000 (10:56 +0100)]
Fixed bug #75684 In mysqlnd_ext_plugin.h the plugin methods family has no external visibility

6 years agoEntry get lost while merging
Xinchen Hui [Wed, 2 Jan 2019 08:46:41 +0000 (16:46 +0800)]
Entry get lost while merging

6 years agoMerge branch 'PHP-7.3' of git.php.net:/php-src into PHP-7.3
Xinchen Hui [Wed, 2 Jan 2019 08:45:38 +0000 (16:45 +0800)]
Merge branch 'PHP-7.3' of git.php.net:/php-src into PHP-7.3

* 'PHP-7.3' of git.php.net:/php-src:
  Fixed bug #77257

6 years agoFixed bug #77387 (Recursion detection broken when printing GLOBALS)
Xinchen Hui [Wed, 2 Jan 2019 08:42:05 +0000 (16:42 +0800)]
Fixed bug #77387 (Recursion detection broken when printing GLOBALS)