Joe Watkins
3318dcc8ef
Merge branch 'PHP-8.0'
...
* PHP-8.0:
php-fpm: fix Solaris port events.mechanism
2021-05-11 11:08:35 +02:00
Joe Watkins
6ccbaa12e0
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
php-fpm: fix Solaris port events.mechanism
2021-05-11 11:07:47 +02:00
Joe Watkins
2558acbd66
Fixed bug #65800 php-fpm: fix Solaris port events.mechanism
2021-05-11 11:05:39 +02:00
Petr Sumbera
04078a597c
php-fpm: fix Solaris port events.mechanism
...
Bug #65800
Fix by: rainer.jung@kippdata.de
2021-05-11 11:01:38 +02:00
dwgebler
f5139878f9
Check parameters on compact() and throw warning if not string or array of strings ( #6921 )
...
compact() is documented (https://www.php.net/manual/en/function.compact ) as a variadic function accepting parameters which are strings or arrays of strings referencing defined symbols.
In actuality, passing nonsense parameters e.g. compact(true, 42) merely returns an empty array. I propose throwing a warning in these cases, to prevent silent bugs.
2021-05-11 09:36:12 +02:00
Máté Kocsis
32aff25ceb
Convert resources to objects in ext/pgsql
...
Closes GH-6791
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2021-05-11 00:09:30 +02:00
Ayesh Karunaratne
57a635c655
Move resource-object classes of PSpell to \PSpell namespace
...
[namespaces in bundled extensions](https://wiki.php.net/rfc/namespaces_in_bundled_extensions ) changes for PSpell.
- Rename `PSpell` class to `\PSpell\Dictionary`
- Rename `PSpellConfig` class to `\PSpell\Config`
- Add entries to `UPGRADING` file.
Related: bd12c94f
2021-05-10 19:29:54 +02:00
Michael Voříšek
3ccc0409ce
Remove no longer used "log_errors_max_len" ini directive ( #6838 )
...
This is a re-application of the original match against master.
The patch was originally applied to master, then reverted from
there, incorrectly applied to PHP-8.0, reverted from there due
to ABI break, and now lands on master again. We can only hope
that it does not get reverted again ;)
2021-05-10 19:26:33 +02:00
Nikita Popov
4f46bec5d4
Initialize zpp varargs variables
...
These are not initialized if no args are passed.
2021-05-10 19:19:26 +02:00
Nikita Popov
a9695aa155
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Correct the argument names for ext/sodium functions
2021-05-10 17:22:41 +02:00
Paragon Initiative Enterprises
0c57ebb116
Correct the argument names for ext/sodium functions
...
Closes GH-6969.
2021-05-10 17:22:02 +02:00
Aaron Piotrowski
39fa55a4c9
Switch register_tick_function back to zend_parse_parameters
...
No reason to use fast ZPP in register_tick_function, so let’s keep the binary size down just a bit.
2021-05-10 10:17:29 -05:00
George Peter Banyard
8082b4c944
Use uint32_t for number of variadic arguments in ZPP
2021-05-10 16:06:22 +01:00
George Peter Banyard
a9695cc615
Refactor register shutdown function mechanism
...
Use FCI/FCC structure instead of custom implementation which does the same.
This also fixes the "bug" which prevented static methods from being shutdown functions.
Closes GH-5829
Co-authored-by: Aaron Piotrowski <aaron@trowski.com >
2021-05-10 15:54:59 +01:00
Máté Kocsis
fcd18757b2
Add reproducer for possible issue with object return type inheritance ( #6961 )
...
Fix early inheritance
Co-authored-by: Joe Watkins <krakjoe@php.net >
2021-05-10 12:52:59 +02:00
Nikita Popov
f71bfe4544
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Don't autoload classes during covariant type check against mixed
2021-05-10 09:46:49 +02:00
Nikita Popov
7fbfcfa851
Don't autoload classes during covariant type check against mixed
...
mixed should be behaving the same way as no type here, and not
require X to be autoloaded. Everything apart from "void" is trivially
covariant to "mixed".
2021-05-10 09:45:48 +02:00
Ayesh Karunaratne
e0b947a8da
Move resource-object classes of LDAP to \LDAP namespaces ( #6963 )
...
Another change as per accepted [namespaces in bundled extensions RFC](https://wiki.php.net/rfc/namespaces_in_bundled_extensions ).
Related: #6925 , #5945 , #6960
2021-05-09 22:20:21 +02:00
Aaron Piotrowski
66bfad57de
Remove unnecessay NULL
...
Z_PARAM_FUNC already sets params to NULL.
2021-05-09 14:55:05 -05:00
Aaron Piotrowski
0189585c9e
Fix tick function with arguments
...
Tick function arguments need to be copied to fci params.
2021-05-09 14:08:20 -05:00
Aaron Piotrowski
7ec048f96d
Do not free tick function entry
...
This memory is freed by zend_llist.
2021-05-09 11:44:32 -05:00
Aaron Piotrowski
3c3ec441e4
Move fiber stack allocation within try
...
If VM stack allocation fails, the bailout will be caught within the fiber.
2021-05-08 23:30:48 -05:00
Nikita Popov
b5c0e7e0ec
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Revert "Remove no longer used "log_errors_max_len" ini directive (#6838 )"
Add entries for log_errors_max_len INI directive removal
Remove no longer used "log_errors_max_len" ini directive (#6838 )
2021-05-08 20:56:00 +02:00
Nikita Popov
090627048c
Revert "Remove no longer used "log_errors_max_len" ini directive ( #6838 )"
...
This reverts commit d2d227e547 .
This is an ABI break.
2021-05-08 20:54:53 +02:00
Ben Ramsey
c2b5284734
Add entries for log_errors_max_len INI directive removal
2021-05-08 13:35:35 -05:00
Ben Ramsey
b5d5d06ff3
Revert "Remove no longer used "log_errors_max_len" ini directive ( #6838 )"
...
This reverts commit cc2c810dcf .
2021-05-08 13:23:58 -05:00
Aaron Piotrowski
5fb03758e5
Rename sanitizer members for clarity
...
These members hold the prior stack pointer and size, so bottom and capacity were poor name choices, prior_pointer and prior_size are more clear.
2021-05-08 13:12:06 -05:00
Michael Voříšek
d2d227e547
Remove no longer used "log_errors_max_len" ini directive ( #6838 )
2021-05-08 13:05:13 -05:00
Ayesh Karunaratne
68224f2a41
Move FTP extension class FTPConnection to FTP\Connection
...
With the [namespaces in bundled extensions RFC](https://wiki.php.net/rfc/namespaces_in_bundled_extensions ) passed, renaming the new `\FTPConnection` class to `\FTP\Connection`.
This also adds an entry to `./UPGRADING` file.
Related: #6925 , #5945
2021-05-08 16:40:10 +02:00
Remi Collet
99d67d121a
use getnameinfo instead of gethostbyaddr
2021-05-08 14:52:06 +02:00
George Peter Banyard
05e6f3ebde
Refactor register_tick_function mechanism ( #5828 )
2021-05-08 10:09:09 +01:00
Michael Voříšek
cc2c810dcf
Remove no longer used "log_errors_max_len" ini directive ( #6838 )
2021-05-07 19:07:35 -05:00
Ben Ramsey
c4fe9fb375
Add entries for new Sodium functions to NEWS
2021-05-07 17:50:28 -05:00
P.I.E. Security Team
9b794f8e5e
Expose libsodium's Ristretto255 API ( #6922 )
2021-05-07 17:43:00 -05:00
Ben Ramsey
01ce8d3a78
Add entries for new behavior of PDO_ODBC server info/version attributes
2021-05-07 16:41:26 -05:00
Nikita Popov
ef938d5ee4
Revert "Disable destructors on fuzzer bailout"
...
This reverts commit ed33262dbb .
With adjusted bailout handling in fibers, this should no longer
be necessary.
2021-05-07 23:06:20 +02:00
Aaron Piotrowski
af2905968c
Add sanitizer fiber switching support
2021-05-07 15:52:12 -05:00
Aaron Piotrowski
ccc069d0bb
Catch and repeat zend_bailout in fibers
...
This removes switching to main for fatal errors in fibers in favor of catching any zend_bailout in a fiber and calling zend_bailout again after switching to the previous fiber or {main}.
2021-05-07 15:52:11 -05:00
Nikita Popov
ca8247654c
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix zip build
2021-05-07 22:42:50 +02:00
Nikita Popov
1c2e7b4ea0
Fix zip build
2021-05-07 22:42:31 +02:00
Christoph M. Becker
cc86f70de9
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #80863 : ZipArchive::extractTo() ignores references
2021-05-07 19:22:51 +02:00
Christoph M. Becker
ab3052ab26
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80863 : ZipArchive::extractTo() ignores references
2021-05-07 19:21:58 +02:00
Christoph M. Becker
57918b1a1b
Fix #80863 : ZipArchive::extractTo() ignores references
...
We need to cater to references, when traversing the files to extract.
While we're at it, we move the `zval_file` declaration into a narrower
scope.
Closes GH-6959.
2021-05-07 19:15:29 +02:00
Nikita Popov
32b107e6a6
Use smart_str_extend() instead of smart_str_alloc()
...
These usages were re-implementing the exact functionality of
smart_str_extend().
2021-05-07 16:42:17 +02:00
Nikita Popov
072c50fc77
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Update msan job to Ubuntu 20.04
Skip some tests under msan
2021-05-07 16:28:57 +02:00
Nikita Popov
f547bddcc0
Update msan job to Ubuntu 20.04
...
Also don't explicitly specify symbolizer path. This doesn't appear
to be necessary anymore, and avoids a dependence on the specific
LLVM version used.
2021-05-07 16:28:01 +02:00
Nikita Popov
af948ae24c
Skip some tests under msan
...
These test functions which don't have msan interceptors. This
results in false positives running msan on ubuntu 20.04.
2021-05-07 16:26:49 +02:00
Máté Kocsis
4ece535f19
Merge branch 'PHP-8.0'
...
* Fix return type of php_user_filter::onCreate()
* Fix return type of mysqli::init()
* Fix return type of UConverter::fromUCallback() and UConverter::toUCallback()
2021-05-07 15:23:28 +02:00
Máté Kocsis
54e2ef0b81
Fix return type of UConverter::fromUCallback() and UConverter::toUCallback()
...
Closes GH-6950
2021-05-07 15:21:58 +02:00
Máté Kocsis
e8361eb0e3
Fix return type of mysqli::init()
2021-05-07 15:21:41 +02:00