#
0a74da38 |
| 19-May-2020 |
Nikita Popov |
Add support for replaying warnings in opcache If opcache.record_warnings is enabled, opcache will record compilation warnings and replay them when the file is included again. The pri
Add support for replaying warnings in opcache If opcache.record_warnings is enabled, opcache will record compilation warnings and replay them when the file is included again. The primary use case I have in mind for this is automated testing of the opcache file cache. This resolves bug #76535.
show more ...
|
#
9198faa6 |
| 08-May-2020 |
Máté Kocsis |
Convert resource to object in Sysvmsg Closes GH-5546
|
#
30077100 |
| 13-May-2020 |
Remi Collet |
Revert "doc for enchant Object move" This reverts commit 2c63324a4eabf3f8bdf9585c8dae4527dca2e41f.
|
#
2c63324a |
| 13-May-2020 |
Remi Collet |
doc for enchant Object move
|
#
256b7da3 |
| 25-Apr-2020 |
Máté Kocsis |
Convert resource to object in XML-RPC extension Closes GH-5457
|
#
28af364d |
| 25-Feb-2020 |
Nikita Popov |
Deprecate old ReflectionParameter type declaration APIs This deprecates: ReflectionParameter::isArray() ReflectionParameter::isCallable() ReflectionParameter::ge
Deprecate old ReflectionParameter type declaration APIs This deprecates: ReflectionParameter::isArray() ReflectionParameter::isCallable() ReflectionParameter::getClass() These APIs have been superseded by ReflectionParameter::getType() since PHP 7.0. Types introduced since that time are not available through the old APIs, and their behavior is getting increasingly confusing. This is how they interact with PHP 8 union types: * isArray() will return true if the type is array or ?array, but not any other union type * Same for isCallable(). * getClass() will return a class for T|int etc, as long as the union only contains a single type. T1|T2 will return null. This behavior is not particularly reasonable or useful, and will get more confusing as new type system extensions are added. Closes GH-5209.
show more ...
|
#
a0abc26e |
| 21-Apr-2020 |
Nikita Popov |
Add get_resource_id() function Behavior is same as for (int) $resource, just under a clearer name. Also type-safe, in that the parameter actually needs to be a resource. Clo
Add get_resource_id() function Behavior is same as for (int) $resource, just under a clearer name. Also type-safe, in that the parameter actually needs to be a resource. Closes GH-5427.
show more ...
|
#
4a816584 |
| 29-Feb-2020 |
Máté Kocsis |
Make float to string casts locale-independent From now on, float to string casting will always behave locale-independently. RFC: https://wiki.php.net/rfc/locale_independent_float_to_stri
Make float to string casts locale-independent From now on, float to string casting will always behave locale-independently. RFC: https://wiki.php.net/rfc/locale_independent_float_to_string Closes GH-5224 Co-authored-by: George Peter Banyard <girgias@php.net>
show more ...
|
#
b67f699d |
| 07-May-2020 |
Máté Kocsis |
Rename the recently introduced Sysvsem class to SysvSemaphore
|
#
eab54d23 |
| 01-May-2020 |
Máté Kocsis |
Convert resource to object in ext/sysvsem Closes GH-5508
|
#
5bc1e224 |
| 01-Apr-2020 |
Nikita Popov |
Make numeric operations on resources, arrays and objects type errors RFC: https://wiki.php.net/rfc/arithmetic_operator_type_checks Closes GH-5331.
|
#
31fb6a08 |
| 05-May-2020 |
William Hudgins |
Add str_starts_with() and str_ends_with() RFC: https://wiki.php.net/rfc/add_str_starts_with_and_ends_with_functions Closes GH-5300.
|
#
50752401 |
| 04-May-2020 |
AllenJB |
Change the default PDO error mode to exceptions According to <https://www.php.net/manual/en/pdo.error-handling.php>.
|
#
34275457 |
| 04-May-2020 |
Remi Collet |
Use libenchant-2 when available
|
#
69888c3f |
| 02-May-2020 |
Christoph M. Becker |
Fix #79467: data:// wrappers are writable Despite the docs claiming that data: wrappers would not be writable[1], they are implemented as writing to a memory stream. That does not seem
Fix #79467: data:// wrappers are writable Despite the docs claiming that data: wrappers would not be writable[1], they are implemented as writing to a memory stream. That does not seem to be particularly sensible, so we disallow writing altogether. [1] <https://www.php.net/manual/en/wrappers.data.php#refsect1-wrappers.data-options>
show more ...
|
#
1dbf9238 |
| 30-Apr-2020 |
Tyson Andre |
[skip ci] Fix a typo in UPGRADING Confirmed that php_zip.c checks for `"enc_password"` Closes GH-5503
|
#
c4ad8bea |
| 29-Apr-2020 |
Nikita Popov |
Do not inherit LC_CTYPE locale from environment Treatment of locales in PHP is currently inconsistent: The LC_ALL locale is set to "C", as is standard behavior on program startup. Th
Do not inherit LC_CTYPE locale from environment Treatment of locales in PHP is currently inconsistent: The LC_ALL locale is set to "C", as is standard behavior on program startup. The LC_CTYPE locale is set to "", which will inherit it from the environment. However, the inherited LC_CTYPE locale will only be used in some cases, while in other cases it is necessary to perform an explicit setlocale() call in PHP first. This is the case for the locale-sensitive handling in the PCRE extension. Make things consistent by *never* inheriting any locales from the environment. LC_ALL, including LC_CTYPE will be "C" on startup. A locale can be set or inherited through an explicit setlocale() call, at which point the behavior will be fully consistent and predictable. Closes GH-5488.
show more ...
|
#
53eee290 |
| 27-Apr-2020 |
Nikita Popov |
Completely remove disabled functions from function table Currently, disabling a function only replaces the internal function handler with one that throws a warning, and a few places
Completely remove disabled functions from function table Currently, disabling a function only replaces the internal function handler with one that throws a warning, and a few places in the engine special-case such functions, such as function_exists. This leaves us with a Schrödinger's function, which both does not exist (function_exists returns false) and does exist (you cannot define a function with the same name). In particular, this prevents the implementation of robust polyfills, as reported in https://bugs.php.net/bug.php?id=79382: if (!function_exists('getallheaders')) { function getallheaders(...) { ... } } If getallheaders() is a disabled function, this code will break. This patch changes disable_functions to remove the functions from the function table completely. For all intents and purposes, it will look like the function does not exist. This also renders two bits of PHP functionality obsolete and thus deprecated: * ReflectionFunction::isDisabled(), as it will no longer be possible to construct the ReflectionFunction of a disabled function in the first place. * get_defined_functions() with $exclude_disabled=false, as get_defined_functions() now never returns disabled functions. Fixed bug #79382. Closes GH-5473.
show more ...
|
#
1b981517 |
| 30-Apr-2020 |
Remi Collet |
doc enchant changes
|
#
f545ee2c |
| 26-Mar-2020 |
Nikita Popov |
Allow optional trailing comma in parameter list RFC: https://wiki.php.net/rfc/trailing_comma_in_parameter_list Closes GH-5306.
|
#
0810fcd0 |
| 18-Mar-2020 |
Ilija Tovilo |
Make throw statement an expression RFC: https://wiki.php.net/rfc/throw_expression This has an open issue with temporaries that are live at the time of the throw being leaked. La
Make throw statement an expression RFC: https://wiki.php.net/rfc/throw_expression This has an open issue with temporaries that are live at the time of the throw being leaked. Landing this now for easier testing and will revert if we cannot resolve the issue. Closes GH-5279.
show more ...
|
#
64d30c19 |
| 23-Apr-2020 |
Jacob Dreesen |
Fix typo in UPGRADING [ci skip]
|
#
ef0e4478 |
| 02-Feb-2020 |
Your Name |
Add get_debug_type() function RFC: https://wiki.php.net/rfc/get_debug_type
|
#
8597ec00 |
| 15-Apr-2020 |
Nikita Popov |
Remove support for libmysqlclient 5.0 Closes GH-5391.
|
#
657f756c |
| 18-Apr-2020 |
Nicolas Grekas |
Skip non-existing properties returned by __sleep()
|