#
5b29eba7 |
| 29-Mar-2021 |
Cameron Hall |
Fix #42357: fputcsv() has an optional parameter for line endings fputcsv does not terminate lines correctly as per RFC 41801[1]. After adding a new parameter fputcsv may now use a user defin
Fix #42357: fputcsv() has an optional parameter for line endings fputcsv does not terminate lines correctly as per RFC 41801[1]. After adding a new parameter fputcsv may now use a user defined line ending,. In order to maintain backwards compatibility fputcsv() still terminates lines with "\n" by default. Also fixes: #46367[2], #62770[3] Ref: #42357[4] [1] <https://tools.ietf.org/html/rfc4180> [2] <https://bugs.php.net/bug.php?id=46367> [3] <https://bugs.php.net/bug.php?id=62770> [4] <https://bugs.php.net/bug.php?id=42357>
show more ...
|
#
4c6533c2 |
| 17-Feb-2021 |
Máté Kocsis |
Generate class entries from stubs for com, standard, xmlreader, xmlwriter, xsl, zip, Zend Closes GH-6706 |
#
070e24d7 |
| 11-Feb-2021 |
Nikita Popov |
Allow all scalar types in ini_set() This changes ini_set() to accept all scalar types (string|int|float|bool|null) for the new value. The idea here is that while the INI system ultim
Allow all scalar types in ini_set() This changes ini_set() to accept all scalar types (string|int|float|bool|null) for the new value. The idea here is that while the INI system ultimately works with strings, its value interpretation is designed to be consistent with PHP's casting rules, e.g. "1" and "" are interpreted as boolean true and false respectively. I personally believe that writing ini_set('precision', 10) makes more sense than ini_set('precision', '10'), and find strict_types to be unnecessarily pedantic here. Closes GH-6680.
show more ...
|
#
bfbac70e |
| 11-Feb-2021 |
Nikita Popov |
Merge branch 'PHP-8.0' * PHP-8.0: Don't return null from password_get_info()
|
#
cec5e308 |
| 11-Feb-2021 |
Nikita Popov |
Don't return null from password_get_info() The get_info() handler should never fail, but even if it does, we should still return a proper info array -- it doesn't make sense that a c
Don't return null from password_get_info() The get_info() handler should never fail, but even if it does, we should still return a proper info array -- it doesn't make sense that a completely incorrect hash returns an info array, but a hash that is recognized but for which the options can't be extracted would return null.
show more ...
|
Revision tags: php-7.3.27, php-7.3.26, php-7.3.26RC1, php-7.3.25, php-7.3.25RC1, php-7.3.24, php-7.3.24RC1, php-7.3.23, php-7.3.23RC1, php-7.3.22, php-7.3.22RC1, php-7.3.21, php-7.3.21RC1, php-7.3.20, php-7.3.20RC1, php-7.3.19, php-7.4.7RC1, php-7.3.19RC1, php-7.3.18RC1, php-7.2.30, php-7.3.17, php-7.3.17RC1, php-7.3.18, php-7.3.16, php-7.3.16RC1, php-7.3.15RC1, php-7.3.15, php-7.3.14, php-7.3.14RC1, php-7.3.13, php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1 |
|
#
13c430b1 |
| 04-Nov-2019 |
Dusk |
Add array_is_list(array $array) function This function tests if an array contains only sequential integer keys. While list isn't an official type, this usage is consistent with the commu
Add array_is_list(array $array) function This function tests if an array contains only sequential integer keys. While list isn't an official type, this usage is consistent with the community usage of "list" as an annotation type, cf. https://psalm.dev/docs/annotating_code/type_syntax/array_types/#lists Rebased and modified version of #4886 - Use .stub.php files - Add opcache constant evaluation when argument is a constant - Change from is_list(mixed $value) to array_is_list(array $array) RFC: https://wiki.php.net/rfc/is_list Co-Authored-By: Tyson Andre <tysonandre775@hotmail.com> Co-Authored-By: Dusk <dusk@woofle.net> Closes GH-6070
show more ...
|
#
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 ...
|
#
cae0bcba |
| 01-Jan-2021 |
Christoph M. Becker |
Fix parameter name Levenshtein is about insertion, replacement and deletion. Closes GH-6560. |
#
73321bc3 |
| 04-Nov-2020 |
Nikita Popov |
getlastmod() can return false At least this can happen during preloading. |
#
76e4bf30 |
| 24-Oct-2020 |
Máté Kocsis |
Parameter type and name fixes in ext/standard Closes GH-6382 |
#
f076ab0c |
| 17-Oct-2020 |
Máté Kocsis |
Fix #80229: assert_options should have int and bool for parameter PHPDoc Closes GH-6348 |
#
68195bd4 |
| 06-Oct-2020 |
Nikita Popov |
Update ext/spl parameter names Closes GH-6284. |
#
79484b4f |
| 05-Oct-2020 |
Nikita Popov |
Update ext/sockets parameter names Also change $max_length to $length in a number of filesystem APIs, where our usage was inconsistent. Closes GH-6276. |
#
d9dce839 |
| 05-Oct-2020 |
Nikita Popov |
Update ext/posix parameter names Closes GH-6275. |
#
e9c70729 |
| 01-Oct-2020 |
Máté Kocsis |
Review parameter names in ext/zlib Closes GH-6250 |
#
25f1c405 |
| 25-Sep-2020 |
Nikita Popov |
Update ext/standard parameter names Closes GH-6214. |
#
cafceea7 |
| 24-Sep-2020 |
Nikita Popov |
Update mbstring parameter names Closes GH-6207. |
#
8067cf47 |
| 25-Sep-2020 |
Nikita Popov |
Use callable type in register_shutdown_function() To make things a bit less weird, split off the function name into a zval stored separately from the arguments. This allows us to use
Use callable type in register_shutdown_function() To make things a bit less weird, split off the function name into a zval stored separately from the arguments. This allows us to use normal zpp and get standard behavior.
show more ...
|
#
43ce18f8 |
| 25-Sep-2020 |
Nikita Popov |
Add proper count() parameter type We can make this Countable|array now. |
#
13b791c7 |
| 22-Sep-2020 |
Nikita Popov |
Normalize substr() behavior Make the behavior of substr(), mb_substr(), iconv_substr() and grapheme_substr() consistent when it comes to the handling of out of bounds offsets. substr
Normalize substr() behavior Make the behavior of substr(), mb_substr(), iconv_substr() and grapheme_substr() consistent when it comes to the handling of out of bounds offsets. substr() will now always clamp out of bounds offsets to the string boundary. Cases that previously returned false will now return an empty string. This means that substr() itself *always* returns a string now (like mb_substr() already did before.) Closes GH-6182.
show more ...
|
#
de77344d |
| 22-Sep-2020 |
Nikita Popov |
Promote pack/unpack format errors Errors related to invalid format strings (unlike data mismatch errors) should throw ValueError. Closes GH-6185. |
#
fdd9018b |
| 22-Sep-2020 |
Nikita Popov |
Support uuencoding empty string Cross checking implementations from other languages, empty strings are always allowed. PHP's output is peculiar due to it's insistence to encode a tra
Support uuencoding empty string Cross checking implementations from other languages, empty strings are always allowed. PHP's output is peculiar due to it's insistence to encode a trailing \0, but otherwise sensible and does round-trip as expected.
show more ...
|
#
e60f927f |
| 22-Sep-2020 |
Nikita Popov |
stream_bucket_new() cannot return false php_stream_bucket_new() is infallible. |
#
9ef2c5c3 |
| 22-Sep-2020 |
Nikita Popov |
stream_get_transports/wrappers cannot return false These may return an empty array, but not false. |
#
aba0ee71 |
| 22-Sep-2020 |
Nikita Popov |
Don't return false for empty string in soundex() Return "0000" instead of false to have a consistent return type. "0000" is already a possible return value if the string doesn't cont
Don't return false for empty string in soundex() Return "0000" instead of false to have a consistent return type. "0000" is already a possible return value if the string doesn't contain any letters, such as with soundex(" "). We can treat the case of soundex("") exactly the same.
show more ...
|