Ilija Tovilo
dab6226cbe
Fix invalid opcode for ??= on $GLOBALS
...
Closes #81684
Closes GH-7717
2021-12-05 18:25:02 +01:00
Dmitry Stogov
307e476e86
Fixed bug #81216 (Nullsafe operator leaks dynamic property name)
...
Fixes oss-fuzz #38542
2021-12-04 18:04:24 +03:00
Christoph M. Becker
929d847152
Fix #81693 : mb_check_encoding(7bit) segfaults
...
`php_mb_check_encoding()` now uses conversion to `mbfl_encoding_wchar`.
Since `mbfl_encoding_7bit` has no `input_filter`, no filter can be
found. Since we don't actually need to convert to wchar, we encode to
8bit.
Closes GH-7712.
2021-12-03 22:49:47 +01:00
Christoph M. Becker
59dd4fd742
Fix #81681 : ReflectionEnum throwing exceptions
...
Enums are neither instantiable nor cloneable.
Closes GH-7707.
2021-12-02 23:22:07 +01:00
Patrick Allaert
628670c391
Prepare for 8.1.2
2021-12-02 14:20:36 +01:00
Christoph M. Becker
60717fcd34
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix #74604 : Out of bounds in php_pcre_replace_impl
2021-11-29 19:17:16 +01:00
Christoph M. Becker
816aa20391
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #74604 : Out of bounds in php_pcre_replace_impl
2021-11-29 19:15:20 +01:00
Christoph M. Becker
712fc54e85
Fix #74604 : Out of bounds in php_pcre_replace_impl
...
Trying to allocate a `zend_string` with a length only slighty smaller
than `SIZE_MAX` causes an integer overflow; we make sure that this
doesn't happen by catering to the maximal overhead of a `zend_string`.
Closes GH-7597.
2021-11-29 19:12:55 +01:00
Christoph M. Becker
b0823438a9
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix #81659 : stream_get_contents() may unnecessarily overallocate
2021-11-29 14:50:19 +01:00
Christoph M. Becker
f3bd24a200
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #81659 : stream_get_contents() may unnecessarily overallocate
2021-11-29 14:48:11 +01:00
Christoph M. Becker
31749aac62
Fix #81659 : stream_get_contents() may unnecessarily overallocate
...
Since we're going to read from the current stream position anyway, the
`max_len` should be the size of the file minus the current position
(still catering to potentially filtered streams). We must, however,
make sure to cater to the file position being beyond the actual file
size.
While we're at, we also fix the step size in the comment, which is 8K.
A further optimization could be done for unfiltered streams, thus
saving that step size, but 8K might not be worth it.
Closes GH-7693.
2021-11-29 14:46:09 +01:00
Patrick Allaert
99d130acbc
Reordering non bug entries
2021-11-27 13:18:59 +01:00
Patrick Allaert
75546bdef2
Standardize: Fixed Bug -> Fixed bug
2021-11-27 13:13:26 +01:00
Patrick Allaert
7f7f91536f
Placing core changes before anything else
2021-11-27 13:05:02 +01:00
Patrick Allaert
c459625df0
Removed placeholder from NEWS
2021-11-27 13:00:00 +01:00
Patrick Allaert
4e3192dd3c
Fixed misplaced PgSQL NEWS entry
2021-11-27 12:59:28 +01:00
Patrick Allaert
22756f56b2
Sorting and standardize NEWS entries
2021-11-27 12:54:14 +01:00
Christoph M. Becker
6008a75f39
Update to PCRE2 10.39
...
We also apply an respective upstream fix[1].
[1] <d144199dfb
>
Closes GH-7678.
2021-11-25 18:38:31 +01:00
Christoph M. Becker
df5e95b4d1
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix #81649 : imap_(un)delete accept sequences, not single numbers
2021-11-25 18:31:14 +01:00
Christoph M. Becker
179030d167
Fix #81649 : imap_(un)delete accept sequences, not single numbers
...
As such, the parameter name `$message_num` is utmost misleading; it
should be `$message_nums` as for other functions.
Closes GH-7686.
2021-11-25 18:29:43 +01:00
Christoph M. Becker
a40f3ef9d6
[ci skip] PHP 8.1.0 ships today
2021-11-25 18:26:59 +01:00
Nikita Popov
be271f277e
Fix bug #81652
...
We need to check not only for defs but also for uses of the
variable.
2021-11-24 15:18:31 +01:00
Christoph M. Becker
b29e85a0da
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #75725 : ./configure: detecting RAND_egd
2021-11-22 14:13:52 +01:00
Дилян Палаузов
60fe575ce3
Fix #75725 : ./configure: detecting RAND_egd
...
Closes GH-7668.
2021-11-22 14:11:07 +01:00
Dmitry Stogov
76548e5093
Fixed bug #81607 (CE_CACHE allocation with concurrent access)
2021-11-17 18:23:36 +03:00
Nikita Popov
4d4fe7639f
Fixed bug #81631
...
We need to save the opline before fetching the operand, as it may
throw an undef var warning.
2021-11-17 16:06:25 +01:00
Nikita Popov
6641e3b8f4
Fix bug #81630 : Don't claim known hash in getTraitAliases()
...
We don't intern this string, and this code is not particularly
performance critical in the first place, so just drop the the
assumption.
2021-11-17 15:54:42 +01:00
Cameron Porter
812df2bd8a
Fix bug #81611
...
Add zend_fetch_class_with_scope() which accepts a scope to use for
self/parent, and use that during constant expression evaluation.
Closes GH-7649.
2021-11-16 14:40:06 +01:00
Christoph M. Becker
1641e298df
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
[ci skip] Fix news entry for bug #79971
[ci skip] Update NEWS
2021-11-16 13:16:39 +01:00
Christoph M. Becker
b963208640
[ci skip] Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
[ci skip] Fix news entry for bug #79971
[ci skip] Update NEWS
2021-11-16 13:13:54 +01:00
Christoph M. Becker
8a2076475e
[ci skip] Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
[ci skip] Fix news entry for bug #79971
[ci skip] Update NEWS
2021-11-16 13:11:53 +01:00
Christoph M. Becker
d14a9139d5
[ci skip] Fix news entry for bug #79971
2021-11-16 13:06:04 +01:00
Nikita Popov
9e25c4b3a6
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fixed bug #81626
2021-11-16 12:46:20 +01:00
Nikita Popov
d26965b247
Fixed bug #81626
...
Backport of a8926474cb
to 7.4.
2021-11-16 12:45:33 +01:00
Nikita Popov
4a2656327d
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix bug #81618 : Correct dns_get_record on FreeBSD
2021-11-15 10:00:36 +01:00
Matt
45f52285f6
Fix bug #81618 : Correct dns_get_record on FreeBSD
...
Modify dns_get_record to test for records result based on dns_errno to
accommodate modern FreeBSD, for which res_nsearch() does not update
h_errno directly. Add new php_dns_errno macro, and have it consult
statp->res_h_errno when OS has res_nsearch().
Closes GH-7655.
2021-11-15 10:00:07 +01:00
Stanislav Malyshev
7967875d70
[ci skip] Update NEWS
2021-11-14 23:35:26 -08:00
Jakub Zelenka
48bc4ea758
Merge branch 'PHP-8.0' into PHP-8.1
2021-11-14 20:14:22 +00:00
Jakub Zelenka
ec3d4409a4
Merge branch 'PHP-7.4' into PHP-8.0
2021-11-14 20:10:42 +00:00
Jakub Zelenka
b2cf9b7ec7
Fix bug #81513 (Future possibility for heap overflow in FPM zlog)
...
This fixes currently unused code path in zlog that could lead to
the heap overflow in the future.
2021-11-14 20:08:57 +00:00
Ben Ramsey
89f28fafca
The PHP-8.1 branch is now for 8.1.0
2021-11-09 17:49:14 -06:00
Nikita Popov
425e70c11c
Fix bug #81441
...
Zero-initialize the sa4/sa6 structures. On musl sin6_scope_id is
used by getnameinfo() without NI_NUMERICHOST flag. In the interest
of being conservative simply zero out everything.
2021-11-09 16:23:11 +01:00
Derick Rethans
904933e918
Fixed bug #81458 : Regression: Incorrect difference after timezone change
2021-11-08 09:40:27 +00:00
Nikita Popov
a38f4f9881
Fix bug #78647
...
We can't take ownership of the delayed autoload table here. It is
important that pending classes get loaded before resolving variance
of any nested classed, as they might actually be lower in the
hierarchy.
2021-11-08 09:59:33 +01:00
Nikita Popov
4c171ed5eb
Fix bug #81591 : ignore_repeated_errors broken
...
We should suppress the error if the message is the same, not if
it's different. Apparently we had no test coverage for these
options.
2021-11-04 16:23:55 +01:00
Nikita Popov
d3932682e7
Fixed bug #81582
...
If __toString() comes from a trait, implement Stringable during
inheritance.
2021-11-04 11:58:33 +01:00
Christoph M. Becker
7f2533d065
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix #71316 : libpng warning from imagecreatefromstring
2021-11-04 11:21:10 +01:00
Christoph M. Becker
f22f4afd84
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #71316 : libpng warning from imagecreatefromstring
2021-11-04 11:19:24 +01:00
Christoph M. Becker
1919c4b44d
Fix #71316 : libpng warning from imagecreatefromstring
...
We backport the respective upstream fix[1] to our bundled libgd.
[1] <636100b928
>
Closes GH-7615.
2021-11-04 11:16:45 +01:00
Clément Chigot
cfe8a455a6
Fix bug #81507 : Adjust XCOFF asm files for AIX assembler
...
AIX assembler is a bit more strict than GNU assembler. Thus, adjust
the XCOFF asm files to be able to accept both assembler.
This pulls in upstream boost context changes from
https://github.com/boostorg/context/pull/191 .
Closes GH-7579.
2021-11-04 10:54:42 +01:00