#
d628d7e0 |
| 17-Mar-2021 |
Ilija Tovilo |
Add enums to UPGRADING [ci skip] |
#
5e1056ed |
| 20-Jan-2021 |
Dharman |
Change the default error mode of mysqli Make MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT the new mysqli error reporting default. Explicitly call mysqli_report(MYSQLI_REPORT_OFF) to pr
Change the default error mode of mysqli Make MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT the new mysqli error reporting default. Explicitly call mysqli_report(MYSQLI_REPORT_OFF) to preserve previous behavior. RFC: https://wiki.php.net/rfc/mysqli_default_errmode Closes GH-6629.
show more ...
|
#
3dfd3558 |
| 13-Mar-2021 |
Dharman |
Deprecate mysqli driver_version property The driver version hasn't been updated in 13 years, so this number is essentially meaningless. Check PHP_VERSION_ID instead. |
#
b84f4ed7 |
| 05-Mar-2021 |
Dmitry Stogov |
typo |
#
500b4b49 |
| 03-Mar-2021 |
Nikita Popov |
Explicitly print reference wrappers in debug_zval_dump() Closes GH-6750. |
#
c9a9362c |
| 01-Mar-2021 |
Dmitry Stogov |
Added UPGRADING note. |
#
da011a31 |
| 22-Feb-2021 |
Darek Slusarczyk |
Fix #80329: Add option to specify LOAD DATA LOCAL white list folder * allow the user to specify a folder where files that can be sent via LOAD DATA LOCAL can exist * add mysqli.
Fix #80329: Add option to specify LOAD DATA LOCAL white list folder * allow the user to specify a folder where files that can be sent via LOAD DATA LOCAL can exist * add mysqli.local_infile_directory for mysqli (ignored if mysqli.allow_local_infile is enabled) * add PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY for pdo_mysql (ignored if PDO::MYSQL_ATTR_LOCAL_INFILE is enabled) * add related tests * fixes for building with libmysql 8.x * small improvement in existing tests * update php.ini-[development|production] files Closes GH-6448. Co-authored-by: Nikita Popov <nikic@php.net>
show more ...
|
#
6055b72d |
| 21-Feb-2021 |
Anatol Belski |
UPGRADING: Add note about xxHash secret and fix a typo [ci skip] Signed-off-by: Anatol Belski <ab@php.net> |
#
5d160e30 |
| 17-Feb-2021 |
Nikita Popov |
Fix static variable behavior with inheritance When a method is inherited, the static variables will now always use the initial values, rather than the values at the time of inheritan
Fix static variable behavior with inheritance When a method is inherited, the static variables will now always use the initial values, rather than the values at the time of inheritance. As such, behavior no longer depends on whether inheritance happens before or after a method has been called. This is implemented by always keeping static_variables as the original values, and static_variables_ptr as the modified copy. Closes GH-6705.
show more ...
|
#
e727919b |
| 26-Nov-2020 |
Alexander Moskalev |
cURL: make possible to send file from buffer string Add CURLStringFile class which works similarly to CURLFile, but uploads a file from a string rather than a file. This avoids the n
cURL: make possible to send file from buffer string Add CURLStringFile class which works similarly to CURLFile, but uploads a file from a string rather than a file. This avoids the need to create a temporary file, or use of a data:// stream. Basic usage: $file = new CURLStringFile($data, 'filename.txt', 'text/plain'); curl_setopt($curl, CURLOPT_POSTFIELDS, ['file' => $file]); Closes GH-6456.
show more ...
|
#
b10416a6 |
| 30-Nov-2020 |
Nikita Popov |
Deprecate passing null to non-nullable arg of internal function This deprecates passing null to non-nullable scale arguments of internal functions, with the eventual goal of making the b
Deprecate passing null to non-nullable arg of internal function This deprecates passing null to non-nullable scale arguments of internal functions, with the eventual goal of making the behavior consistent with userland functions, where null is never accepted for non-nullable arguments. This change is expected to cause quite a lot of fallout. In most cases, calling code should be adjusted to avoid passing null. In some cases, PHP should be adjusted to make some function arguments nullable. I have already fixed a number of functions before landing this, but feel free to file a bug if you encounter a function that doesn't accept null, but probably should. (The rule of thumb for this to be applicable is that the function must have special behavior for 0 or "", which is distinct from the natural behavior of the parameter.) RFC: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg Closes GH-6475.
show more ...
|
#
27cd7a11 |
| 07-Jan-2021 |
Nikita Popov |
Add support for string keys in array unpacking This adds support for: $array1 = ['a' => 1, 'b' => 2]; $array2 = ['b' => 3, 'c' => 4]; $array = [...$array1, ...$a
Add support for string keys in array unpacking This adds support for: $array1 = ['a' => 1, 'b' => 2]; $array2 = ['b' => 3, 'c' => 4]; $array = [...$array1, ...$array2]; // => ['a' => 1, 'b' => 3, 'c' => 4] RFC: https://wiki.php.net/rfc/array_unpacking_string_keys Closes GH-6584.
show more ...
|
#
a8dd009f |
| 17-Jan-2021 |
tzmfreedom |
Allow specifying sqlite3 DSN (file:/) in PDO SQLite Closes GH-6610. |
#
ed24f0f2 |
| 23-Jan-2021 |
Darek Slusarczyk |
Fix #80330: Replace language in APIs and source code/docs Rename MYSQLI_REFRESH_SLAVE to MYSQLI_REFRESH_REPLICA in line with upstream change in MySQL. The old name is retained for ba
Fix #80330: Replace language in APIs and source code/docs Rename MYSQLI_REFRESH_SLAVE to MYSQLI_REFRESH_REPLICA in line with upstream change in MySQL. The old name is retained for backwards-compatibility reasons, and may be deprecated/removed in the future. Closes GH-6632.
show more ...
|
#
71301f5b |
| 24-Jan-2021 |
Tyson Andre |
Add documentation of array_is_list() to UPGRADING |
#
50eca61f |
| 06-Jan-2021 |
Craig Francis |
Use ENT_QUOTES|ENT_SUBSTITUTE default for HTML encoding and decoding functions htmlspecialchars() etc now use ENT_QUOTES | ENT_SUBSTITUTE rather than ENT_COMPAT by default. Clos
Use ENT_QUOTES|ENT_SUBSTITUTE default for HTML encoding and decoding functions htmlspecialchars() etc now use ENT_QUOTES | ENT_SUBSTITUTE rather than ENT_COMPAT by default. Closes GH-6583.
show more ...
|
#
ebca8dea |
| 16-Jan-2021 |
David Carlier |
posix: adding freebsd specific rlimit constants Respectively number of kqueues, pty limits per user. Closes GH-6608. |
#
3dad63b5 |
| 17-Jan-2021 |
Ayesh Karunaratne |
Curl: Add CURLOPT_DOH_URL option From libcurl version 7.62.0 and later, it supports DNS-over-HTTPS with [`CURLOPT_DOH_URL`](https://curl.se/libcurl/c/CURLOPT_DOH_URL.html) option. Th
Curl: Add CURLOPT_DOH_URL option From libcurl version 7.62.0 and later, it supports DNS-over-HTTPS with [`CURLOPT_DOH_URL`](https://curl.se/libcurl/c/CURLOPT_DOH_URL.html) option. This adds integration with the `CURLOPT_DOH_URL` option if libcurl version is >= 7.62.0 (0x073E00). For reference, Ubuntu 20.04+ `libcurl4-openssl-dev`-based PHP builds use Curl 7.68. Closes GH-6612.
show more ...
|
#
7703b854 |
| 09-Jan-2021 |
Anatol Belski |
UPGRADING: Add xxHash notes [ci skip] Signed-off-by: Anatol Belski <ab@php.net> |
#
3c68f38f |
| 02-Dec-2020 |
Nikita Popov |
Restrict allowed usages of $GLOBALS This restricts allowed usage of $GLOBALS, with the effect that plain PHP arrays can no longer contain INDIRECT elements. RFC: https://wiki.ph
Restrict allowed usages of $GLOBALS This restricts allowed usage of $GLOBALS, with the effect that plain PHP arrays can no longer contain INDIRECT elements. RFC: https://wiki.php.net/rfc/restrict_globals_usage Closes GH-6487.
show more ...
|
#
589bdf30 |
| 19-Oct-2020 |
George Peter Banyard |
Implement Explicit octal notation for integers RFC RFC: https://wiki.php.net/rfc/explicit_octal_notation Add an extensive test suits for other variants of integer literals
Implement Explicit octal notation for integers RFC RFC: https://wiki.php.net/rfc/explicit_octal_notation Add an extensive test suits for other variants of integer literals Closes GH-6360
show more ...
|
#
438b025a |
| 23-Dec-2020 |
Nikita Popov |
Support native types in PDO SQLite Return integers and floats as native types if possible. As usual, the old behavior can be restored by enabling ATTR_STRINGIFY_FETCHES. Fixes b
Support native types in PDO SQLite Return integers and floats as native types if possible. As usual, the old behavior can be restored by enabling ATTR_STRINGIFY_FETCHES. Fixes bug #38334.
show more ...
|
#
caa71003 |
| 17-Dec-2020 |
Nikita Popov |
Rewrite PDO result binding Instead of requiring the type to be determined in advance by the describer function and then requiring get_col to return a buffer of appropriate type, allo
Rewrite PDO result binding Instead of requiring the type to be determined in advance by the describer function and then requiring get_col to return a buffer of appropriate type, allow get_col to return an arbitrary zval. See UPGRADING.INTERNALS for a more detailed description of the change. This makes the result fetching simpler, more efficient and more flexible. The general possibility already existed via the special PDO_PARAM_ZVAL type, but the usage was very inconvenient and/or inefficient. Now it's possible to easily implement behavior like "return int if it fits, otherwise string" and to avoid any kind of complex management of temporary buffers. This also fixes bug #40913 (our second highest voted bug of all time, for some reason). PARAM_LOB result bindings will now consistently return a stream resource, independently of the used database driver. I've tried my best to update all PDO drivers for this change, but some of the changes may be broken, as I cannot test or even build some of these drivers (in particular PDO dblib and PDO oci). Fixes are appreciated -- a working CI setup would be even more appreciated ;)
show more ...
|
#
27afc455 |
| 22-Dec-2020 |
George Peter Banyard |
Add IMAP resource to object conversion to UPGRADING |
#
737195c3 |
| 21-Dec-2020 |
Nikita Popov |
PDO: Honor ATTR_STRINGIFY_FETCHES for booleans Of the important PDO drivers, this affects only PDO PgSQL, as both MySQL and SQLite do not return native boolean types. |