Christoph M. Becker
320d6050e7
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #44643 : bound parameters ignore explicit type definitions
2021-05-12 13:47:57 +02:00
Christoph M. Becker
63c558bcbb
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #44643 : bound parameters ignore explicit type definitions
2021-05-12 13:47:01 +02:00
Christoph M. Becker
23a3bbb468
Fix #44643 : bound parameters ignore explicit type definitions
...
If `SQLDescribeParam()` fails for a parameter, we must not assume
`SQL_LONGVARCHAR` for any param which is not `PDO_PARAM_LOB`. At least
mapping `PDO_PARAM_INT` to `SQL_INTEGER` should be safe, and not
introduce a BC break.
Closes GH-6973.
2021-05-12 13:30:51 +02:00
Mike Pall
16d59a59c8
DynASM: Bump version to 1.5.0.
2021-05-12 13:40:13 +03:00
Mike Pall
5f44ed55c4
DynASM/ARM64: Add .long expr. Add .quad/.addr expr + refs.
...
Suggested by Dmitry Stogov, Hao Sun and Nick Gasson.
2021-05-12 13:36:32 +03:00
Dmitry Stogov
4a5074154b
DynASM/x86: Fix x64 .aword refs. Add .qword, .quad, .addr and .long.
...
(Switch to .aword implementation by Make Pall)
2021-05-12 13:32:06 +03:00
Dmitry Stogov
e25fce6533
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fixed JIT on first function execution (opcache.jit=1215) with CALL VM
2021-05-12 12:24:39 +03:00
Dmitry Stogov
e96b984026
Fixed JIT on first function execution (opcache.jit=1215) with CALL VM
2021-05-12 12:24:18 +03:00
Dmitry Stogov
c945c399aa
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fixed incorrect stack size calculation (sizeof(zval) == 16)
2021-05-12 02:09:14 +03:00
Dmitry Stogov
6fa4493f7b
Fixed incorrect stack size calculation (sizeof(zval) == 16)
2021-05-12 02:08:53 +03:00
Dmitry Stogov
9f2389177e
Fixed tracing JIT + preloading failures:
...
ext/opcache/tests/preload_003.phpt
ext/opcache/tests/preload_trait_multiple_fixup.phpt
ext/opcache/tests/preload_trait_static.phpt
2021-05-11 16:50:10 +03:00
Dmitry Stogov
cb0854bc53
JIT class methods only when class entry is completely persistent.
...
This fixes a number of test failures on low optimization levels.
(e.g. use after free in Zend/tests/bug54268.phpt and tests/classes/protected_001.phpt with opcache.jit=1204)
2021-05-11 15:49:35 +03:00
Nikita Popov
4fe07d474c
Add test for restoring error_reporting on fatal error during silencing
...
This guard against the issue that GH-6904 would introduce when
run under --repeat 2 mode.
2021-05-11 12:16:59 +02:00
Nikita Popov
07061482a0
Fix segfault in php -a without readline
2021-05-11 11:39:04 +02:00
Joe Watkins
8b8c8fd79c
Merge branch 'PHP-8.0'
...
* PHP-8.0:
missing ;
2021-05-11 11:11:35 +02:00
Joe Watkins
33a93b5ed7
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
missing ;
2021-05-11 11:10:52 +02:00
Joe Watkins
ef3e0ee08a
missing ;
2021-05-11 11:10:38 +02:00
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