Dmitry Stogov
62ae21bbf2
Give preference to live-ranges with register hints to improve register reuse.
2020-10-13 13:59:53 +03:00
Nikita Popov
ea03acadc2
Update ext/pdo_pgsql parameter names
...
Closes GH-6329.
2020-10-13 12:31:39 +02:00
Nikita Popov
3171fec6da
Update ext/pgsql parameter names
...
Closes GH-6294.
2020-10-13 12:30:44 +02:00
Nikita Popov
8c68745f43
Update ext/sodium parameter names
...
Closes GH-6279.
2020-10-13 10:41:35 +02:00
Dmitry Stogov
872787c5f7
Avoid useless register allocation
2020-10-13 11:37:33 +03:00
Nikita Popov
82d46e353b
Update ext/phar parameter names
...
Closes GH-6307.
2020-10-13 10:20:45 +02:00
Christoph M. Becker
818eb8f611
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80226 : imap_sort() leaks sortpgm memory
2020-10-12 23:21:56 +02:00
Dmitry Stogov
87beb22ff8
Perform trace range propagation
2020-10-13 00:18:17 +03:00
Christoph M. Becker
12fc8f66e7
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80226 : imap_sort() leaks sortpgm memory
2020-10-12 23:17:57 +02:00
Christoph M. Becker
8488c34fc6
Fix #80226 : imap_sort() leaks sortpgm memory
...
We need to free what we have allocated.
Closes GH-6327.
2020-10-12 23:16:31 +02:00
Christoph M. Becker
8d4774a2df
Change parameters types from int to bool
...
These are typical boolean parameters, so we shouldn't advertize them as
integers. For the `$reverse` parameter that even fixes expectations,
because the `reverse` member is a bitfield of 1 bit, so assigning any
even integer would not set it.
Closes GH-6328.
2020-10-12 23:10:13 +02:00
Dmitry Stogov
1c596ff146
Eliminate dead stores
2020-10-12 22:59:30 +03:00
Máté Kocsis
186612e4d7
Improve parameter names in ext/intl
...
Closes GH-6309
2020-10-12 18:06:45 +02:00
Máté Kocsis
eef994d621
Improve parameter names in ext/pdo_sqlite
...
Closes GH-6310
2020-10-12 18:05:35 +02:00
Nikita Popov
6edad1716d
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
intl: report more information about message pattern parse errors
2020-10-12 16:44:18 +02:00
Philip Hofstetter
74cf2eb83f
intl: report more information about message pattern parse errors
...
The message patterns can be pretty complex, so reporting a generic
U_PARSE_ERROR without any additional information makes it needlessly
hard to fix erroneous patterns.
This commit makes use of the additional UParseError* parameter to
umsg_open to retrieve more details about the parse error to report that
to the user via intl_get_error_message()
Additional improve error reporting from the IntlMessage constructor.
Previously, all possible failures when calling IntlMessage::__construct()
would be masked away with a generic "Constructor failed" message.
This would include invalid patterns.
This commit makes sure that the underlying error that caused the
constructor failure is reported as part of the IntlException error
message.
Closes GH-6325.
2020-10-12 16:42:41 +02:00
Christoph M. Becker
11c752a5f5
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80216 : imap_mail_compose() does not validate types/encodings
2020-10-12 16:30:48 +02:00
Christoph M. Becker
216d6a024a
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80216 : imap_mail_compose() does not validate types/encodings
2020-10-12 16:28:52 +02:00
Christoph M. Becker
73e43b6e19
Fix #80216 : imap_mail_compose() does not validate types/encodings
...
We need to check whether the given `type`s and `encoding`s are within
bounds to avoid segfaults and out-of-bound reads.
Closes GH-6323.
2020-10-12 16:27:49 +02:00
Christoph M. Becker
0443c824a3
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80223 : imap_mail_compose() leaks envelope on malformed bodies
2020-10-12 15:10:38 +02:00
Christoph M. Becker
4a469c7e98
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80223 : imap_mail_compose() leaks envelope on malformed bodies
2020-10-12 15:09:30 +02:00
Christoph M. Becker
c1962e900a
Fix #80223 : imap_mail_compose() leaks envelope on malformed bodies
...
We have to clean up even on failure.
Closes GH-6322.
2020-10-12 15:08:30 +02:00
Christoph M. Becker
5a8958f0f3
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80220 : imap_mail_compose() may leak memory
2020-10-12 13:34:19 +02:00
Christoph M. Becker
acce991a37
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80220 : imap_mail_compose() may leak memory
2020-10-12 13:32:40 +02:00
Christoph M. Becker
0d022ddf03
Fix #80220 : imap_mail_compose() may leak memory
...
Unless `topbod` is of `TYPEMULTIPART`, `mail_free_body()` does not free
the `nested.part`; while we could do this ourselves, instead we just
ignore additional bodies in this case, i.e. we don't attach them in the
first place.
Closes GH-6321.
2020-10-12 13:31:30 +02:00
Nikita Popov
2cd2ca8884
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Revert "Add missing X509 purpose constants"
2020-10-12 12:56:21 +02:00
Nikita Popov
41e4a77077
Revert "Add missing X509 purpose constants"
...
This reverts commit 1e53e14bc3
.
This fails on Travis.
2020-10-12 12:56:07 +02:00
Nikita Popov
da60849fa1
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Add missing X509 purpose constants
2020-10-12 11:53:22 +02:00
Vincent JARDIN
1e53e14bc3
Add missing X509 purpose constants
...
X509_PURPOSE_OCSP_HELPER, X509_PURPOSE_TIMESTAMP_SIGN are available
from OpenSSL for many years:
- X509_PURPOSE_OCSP_HELPER, since 2001
- X509_PURPOSE_TIMESTAMP_SIGN, since 2006
Also drop the ifdef check for X509_PURPOSE_ANY, as it is always
available in supported OpenSSL versions.
Closes GH-6312.
2020-10-12 11:51:08 +02:00
Christoph M. Becker
d72c648015
Remove return types from XMLWriter stubs
...
These break BC, and as such we have to stick with docblock annotations.
Closes GH-6319.
2020-10-11 18:22:59 +02:00
Derick Rethans
63289cfff3
Merge branch 'PHP-7.4' into PHP-8.0
2020-10-11 14:54:12 +01:00
Derick Rethans
34179ba809
Merge branch 'PHP-7.3' into PHP-7.4
2020-10-11 14:54:02 +01:00
Derick Rethans
1ed5a2a54d
Fixed test for bug #48097 due to confirmed data changes in timelib
2020-10-11 14:53:52 +01:00
Christoph M. Becker
6494e57804
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80215 : imap_mail_compose() may modify by-val parameters
2020-10-10 23:28:19 +02:00
Christoph M. Becker
7940fb42ce
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80215 : imap_mail_compose() may modify by-val parameters
2020-10-10 23:26:12 +02:00
Christoph M. Becker
62a2387a8d
Fix #80215 : imap_mail_compose() may modify by-val parameters
...
We separate the input arrays and all sub-arrays to avoid modification
of the passed parameters.
This should be rewritten to use `zend_string`s for the "master" branch.
Closes GH-6316.
2020-10-10 23:25:06 +02:00
Christoph M. Becker
7d085c87ac
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80213 : imap_mail_compose() segfaults on certain $bodies
2020-10-10 19:19:47 +02:00
Christoph M. Becker
b2b9e2e87e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #80213 : imap_mail_compose() segfaults on certain $bodies
2020-10-10 19:18:14 +02:00
Christoph M. Becker
8bee0fbd37
Fix #80213 : imap_mail_compose() segfaults on certain $bodies
...
We have to cater to non-associative arrays where the key may be `NULL`;
we just skip these elements.
Closes GH-6315.
2020-10-10 19:17:13 +02:00
Christoph M. Becker
2a545ba946
Fix #80175 : PHP8 RC1 - JIT Buffer not working
...
On Windows, `SUCCESSFULLY_REATTACHED` does not imply that the process
has already been properly initialized; thus we must not skip some setup
steps in `zend_jit_startup()`.
Closes GH-6268.
2020-10-10 17:46:59 +02:00
Christoph M. Becker
45c19bde22
Change imap_mail_compose() $body param to $bodies
...
This parameter actually expects an array of bodies, so we should name
it accordingly.
Closes GH-6313.
2020-10-10 17:39:54 +02:00
Dmitry Stogov
57bb3a3966
Eliminate dead load
2020-10-09 18:58:03 +03:00
Nikita Popov
14a26db3e2
Update ext/gd parameter names
...
Closes GH-6308.
2020-10-09 17:10:11 +02:00
Nikita Popov
623bf39e9c
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fixed bug #80186
2020-10-09 17:02:20 +02:00
Nikita Popov
15443f8af4
Fixed bug #80186
...
Early exit in FE_RESET if get_properties() returns empty array,
as we cannot add HT iterators to zend_empty_array.
2020-10-09 16:56:08 +02:00
Nikita Popov
6a8c094e2d
Remove string length limit from levenshtein()
...
As noted on https://bugs.php.net/bug.php?id=80073 , I don't think
having this limitation makes sense. The similar_text() function
has much worse asymptotic complexity than levenshtein() and does
not enforce such a limitation. levenshtein() does have fairly high
memory requirements, but they are a fixed factor of the string
length (and subject to memory limit).
2020-10-09 16:12:08 +02:00
Petr Sumbera
240d06118c
Add support for Solaris 11.4 openpty implementation.
...
Closes GH-6287.
2020-10-09 16:10:03 +02:00
Dmitry Stogov
fc14dbb713
Keep the same JIT code for PHP-8.0 and master (workaround against PHP-8.0 ABI freeze)
2020-10-09 16:54:26 +03:00
Nikita Popov
64cebf3d9a
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Make iconv errno support test pass on Solaris.
2020-10-09 15:25:23 +02:00
Nikita Popov
58af1e156e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Make iconv errno support test pass on Solaris.
2020-10-09 15:24:53 +02:00