]> granicus.if.org Git - php/log
php
6 years agoMerge branch 'PHP-7.3'
Derick Rethans [Mon, 7 Jan 2019 12:49:01 +0000 (12:49 +0000)]
Merge branch 'PHP-7.3'

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 agoMerge branch 'PHP-7.3'
Christoph M. Becker [Mon, 7 Jan 2019 12:11:31 +0000 (13:11 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix NEWS
  Updated to version 2018.9 (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:17 +0000 (11:50 +0000)]
Updated to version 2018.9 (2018i)

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

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.3'
Remi Collet [Mon, 7 Jan 2019 10:12:58 +0000 (11:12 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] fix NEWS

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.3'
Remi Collet [Mon, 7 Jan 2019 10:03:14 +0000 (11:03 +0100)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [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 agoMerge branch 'PHP-7.3'
Nikita Popov [Mon, 7 Jan 2019 09:05:33 +0000 (10:05 +0100)]
Merge branch 'PHP-7.3'

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.2'
Stanislav Malyshev [Mon, 7 Jan 2019 09:03:55 +0000 (01:03 -0800)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  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.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.3'
Stanislav Malyshev [Mon, 7 Jan 2019 07:35:27 +0000 (23:35 -0800)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  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.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.3'
Stanislav Malyshev [Sun, 6 Jan 2019 21:50:48 +0000 (13:50 -0800)]
Merge branch 'PHP-7.3'

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

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 agoMerge branch 'PHP-7.3'
Stanislav Malyshev [Sun, 6 Jan 2019 20:50:10 +0000 (12:50 -0800)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77367: Negative size parameter in mb_split
  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 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 a warning about comparing signed/unsigned variables
jvoisin [Sat, 5 Jan 2019 14:51:17 +0000 (15:51 +0100)]
Fix a warning about comparing signed/unsigned variables

This can be seen here: https://travis-ci.org/nbs-system/snuffleupagus/jobs/473895085#L685

6 years agoPreserve aspect ratio for width or height
Andreas Treichel [Sat, 29 Dec 2018 18:41:57 +0000 (19:41 +0100)]
Preserve aspect ratio for width or height

6 years agoRemove separate *nix system build for Zend engine
Peter Kokot [Sun, 2 Dec 2018 08:23:20 +0000 (09:23 +0100)]
Remove separate *nix system build for Zend engine

Removed files used to provide building Zend engine separately using
Autoconf and Automake:
  cd Zend && ./buildconf && ./configure

Since Zend engine is tightly integrated in the PHP code itself and
current root configure.ac and acinclude provide this patch removes
these. Removed files also included several obsolete macros and
Automake dependency which is not used in main *nix PHP build system.

6 years agoconst-ify some functions
Andrey Hristov [Fri, 4 Jan 2019 11:55:05 +0000 (13:55 +0200)]
const-ify some functions

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Fri, 4 Jan 2019 11:41:30 +0000 (12:41 +0100)]
Merge branch 'PHP-7.3'

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

6 years agoAdd type safety for mysqlnd plugin developers
Andrey Hristov [Fri, 4 Jan 2019 10:39:56 +0000 (12:39 +0200)]
Add type safety for mysqlnd plugin developers

6 years agoResolve parent::class at compile-time if possible
Nikita Popov [Fri, 4 Jan 2019 11:10:22 +0000 (12:10 +0100)]
Resolve parent::class at compile-time if possible

And remove some dead code.

6 years agoDetect invalid uses of parent:: during compilation
Nikita Popov [Fri, 4 Jan 2019 10:55:41 +0000 (11:55 +0100)]
Detect invalid uses of parent:: during compilation

We already detect the case where we're entirely outside a class --
now also check whether there actually is a parent.

This is a minor BC break, in that code that was never executed
might have previously contained an invalid parent:: reference without
generating an error.

6 years agoSupport parent::class inside constexpr contexts
Nikita Popov [Fri, 4 Jan 2019 10:38:35 +0000 (11:38 +0100)]
Support parent::class inside constexpr contexts

6 years agoHandle self::class separately from __CLASS__ in const eval
Nikita Popov [Fri, 4 Jan 2019 10:28:07 +0000 (11:28 +0100)]
Handle self::class separately from __CLASS__ in const eval

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

6 years agoDon't replace self::class with __CLASS__ during const eval
Nikita Popov [Fri, 4 Jan 2019 10:16:59 +0000 (11:16 +0100)]
Don't replace self::class with __CLASS__ during const eval

Instead delay this until const expression compilation. Otherwise
self::class and [self::class] have different behavior...

6 years agoFix intl build
Nikita Popov [Fri, 4 Jan 2019 10:03:03 +0000 (11:03 +0100)]
Fix intl build

class is a reserved keyword in C++...

6 years agoIntroduce separate ZEND_AST_CLASS_NAME AST node
Nikita Popov [Fri, 4 Jan 2019 09:49:23 +0000 (10:49 +0100)]
Introduce separate ZEND_AST_CLASS_NAME AST node

Instead of representing this as a ZEND_AST_CLASS_CONST with a
"class" constant name.

Class constants and ::class are unrelated features that happen to
share syntax, so represent and handle them separately.

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

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 agoMerge branch 'PHP-7.3'
Nikita Popov [Fri, 4 Jan 2019 08:08:19 +0000 (09:08 +0100)]
Merge branch 'PHP-7.3'

[ci skip]

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 agoMerge branch 'PHP-7.3'
Nikita Popov [Thu, 3 Jan 2019 09:26:17 +0000 (10:26 +0100)]
Merge branch 'PHP-7.3'

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.3'
Nikita Popov [Thu, 3 Jan 2019 08:40:49 +0000 (09:40 +0100)]
Merge branch 'PHP-7.3'

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 agoFix undefined function error message
Nikita Popov [Wed, 2 Jan 2019 14:41:38 +0000 (15:41 +0100)]
Fix undefined function error message

This got fixed on 7.3, but the implementation is slightly different
on master and the new test was failing.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Wed, 2 Jan 2019 13:14:07 +0000 (14:14 +0100)]
Merge branch 'PHP-7.3'

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 agoMerge branch 'PHP-7.3'
Nikita Popov [Wed, 2 Jan 2019 12:00:29 +0000 (13:00 +0100)]
Merge branch 'PHP-7.3'

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.3'
Nikita Popov [Wed, 2 Jan 2019 10:34:24 +0000 (11:34 +0100)]
Merge branch 'PHP-7.3'

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 agoTest commit
Andrey Hristov [Wed, 2 Jan 2019 10:30:12 +0000 (12:30 +0200)]
Test commit

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

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 agoUse ZEND_PARSE_PARAMETERS_NONE in pcre
Nikita Popov [Wed, 2 Jan 2019 10:17:38 +0000 (11:17 +0100)]
Use ZEND_PARSE_PARAMETERS_NONE in pcre

Instead of the manual ZEND_PARSE_PARAMETERS_START(0, 0) form.

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

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

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