#
2c96780e |
| 20-Aug-2020 |
Máté Kocsis |
Fix UNKNOWN default values in ext/standard Closes GH-6026
|
#
8107a1da |
| 04-Sep-2020 |
Máté Kocsis |
Use ZPP instead of custom type checks We can add these types as a native type declaration to stubs as a side-effect. Closes GH-6068
|
#
4a438b44 |
| 03-Sep-2020 |
George Peter Banyard |
Warning to Error promotion in ext/standard Those should be the last ones other than set(raw)cookie() Closes GH-5814
|
#
fa8d9b11 |
| 28-Aug-2020 |
George Peter Banyard |
Improve type declarations for Zend APIs Voidification of Zend API which always succeeded Use bool argument types instead of int for boolean arguments Use bool return type for functio
Improve type declarations for Zend APIs Voidification of Zend API which always succeeded Use bool argument types instead of int for boolean arguments Use bool return type for functions which return true/false (1/0) Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics Closes GH-6002
show more ...
|
#
62dce979 |
| 27-Aug-2020 |
Nikita Popov |
Require non-negative length in stream_get_contents() If the length is not -1, require it to be non-negative. Using such lengths doesn't make sense (as only -1 is special-case to
Require non-negative length in stream_get_contents() If the length is not -1, require it to be non-negative. Using such lengths doesn't make sense (as only -1 is special-case to read in chunks, anything else will end up doing a huge upfront allocation) and can lead to string allocation overflow. A similar check is already in place for file_get_contents(). That one does not allow -1 (and uses null instead), but this function is explicitly specified to accept -1, so stick to that behavior.
show more ...
|
#
ae755427 |
| 16-Jul-2020 |
Christoph M. Becker |
Fix #79805: sapi_windows_vt100_support throws TypeError It does not make sense to throw a `TypeError` when the stream can't be analyzed. If `sapi_windows_vt100_support()` is used as get
Fix #79805: sapi_windows_vt100_support throws TypeError It does not make sense to throw a `TypeError` when the stream can't be analyzed. If `sapi_windows_vt100_support()` is used as getter, we just return `false` in that case; if the function is used as setter, we additionally trigger a warning. We also fix the test cases for this function, which have been broken before. Note that these tests are still whitespace sensitive.
show more ...
|
#
2b5de6f8 |
| 01-Jul-2020 |
Max Semenik |
Remove proto comments from C files Closes GH-5758
|
#
0280b83e |
| 06-Jul-2020 |
Nikita Popov |
Avoid some unnecessary uses of no_separation=0 For the rare cases where references are part of the API, construct them explicitly. Otherwise do not allow separation.
|
Revision tags: php-7.4.6, php-7.2.31, php-7.4.6RC1, php-7.3.18RC1 |
|
#
6111d64c |
| 16-Apr-2020 |
Máté Kocsis |
Improve a last couple of argument error messages Closes GH-5404
|
Revision tags: php-7.2.30 |
|
#
b56fb901 |
| 14-Apr-2020 |
Nikita Popov |
Don't leak peername if accept fails Even if the accept fails, the peername may be populated.
|
Revision tags: php-7.4.5, php-7.3.17 |
|
#
b3f3a80f |
| 09-Apr-2020 |
Nikita Popov |
Make stream_socket_enable_crypto() session stream nullable
|
#
217dfc08 |
| 09-Apr-2020 |
Nikita Popov |
Accept null context in stream_socket_(client|server)
|
Revision tags: php-7.4.5RC1, php-7.3.17RC1, php-7.3.18, php-7.4.4, php-7.2.29, php-7.3.16, php-7.4.4RC1, php-7.3.16RC1 |
|
#
bb6f3740 |
| 24-Feb-2020 |
Máté Kocsis |
Improve argument error messages in ext/standard Closes GH-5198
|
#
53797c20 |
| 11-Mar-2020 |
Christoph M. Becker |
Fix #78210: Invalid pointer address This is actually about three distinct issues: * If an empty string is passed as $address to `stream_socket_sendto()`, the `sa` is not initi
Fix #78210: Invalid pointer address This is actually about three distinct issues: * If an empty string is passed as $address to `stream_socket_sendto()`, the `sa` is not initialized, so we must not pass it as `addr` to `php_stream_xport_sendto()`. * On POSIX, `recvfrom()` truncates messages which are too long to fit into the specified buffer (unless `MSG_PEEK` is given), discards the excessive bytes, and returns the buffer length. On Windows, the same happens, but `recvfrom()` returns `SOCKET_ERROR` with the error code `WSAEMSGSIZE`. We have to catch this for best POSIX compatibility. * In `php_network_parse_network_address_with_port()`, we have to zero `in6` (not only its alias `sa`) to properly support IPv6. Co-Authored-By: Nikita Popov <nikita.ppv@googlemail.com>
show more ...
|
Revision tags: php-7.4.3, php-7.2.28, php-7.3.15RC1, php-7.4.3RC1, php-7.3.15, php-7.2.27, php-7.4.2, php-7.3.14 |
|
#
d1764ca3 |
| 15-Jan-2020 |
Máté Kocsis |
Make error messages more consistent by fixing capitalization Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
|
Revision tags: php-7.3.14RC1, php-7.4.2RC1 |
|
#
aadd3aae |
| 03-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() in various places
|
#
bbcfa66e |
| 03-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() after zend_fetch_resource*()
|
#
7b4a4d2a |
| 03-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() after try_convert_to_string()
|
#
9099dbd9 |
| 01-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() after zend_type_error()
|
#
31cf9a7e |
| 29-Dec-2019 |
Máté Kocsis |
Use RETURN_THROWS() when an exception is thrown Closes GH-5036
|
#
e34a1f92 |
| 29-Dec-2019 |
Máté Kocsis |
Convert zend_parse_parameters_none() to fast ZPP in standard lib Closes GH-5037
|
Revision tags: php-7.4.1, php-7.2.26, php-7.3.13 |
|
#
7bfeef60 |
| 16-Dec-2019 |
Máté Kocsis |
Promote warnings to exceptions in stream-related functions GH-5017
|
Revision tags: php-7.4.1RC1, 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 |
|
#
6719d3e7 |
| 29-Oct-2019 |
Nikita Popov |
Add Z_PARAM_STRING/ARRAY_OR_NULL convenience macros
|
Revision tags: php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11 |
|
#
8ccd58ba |
| 21-Oct-2019 |
Colin O'Dell |
Add Z_PARAM_LONG_OR_NULL macro
|
Revision tags: php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1 |
|
#
647b1c7f |
| 07-Oct-2019 |
Nikita Popov |
Remove most uses of ZEND_PARSE_PARAMETERS_END_EX() As ZPP now throws, it makes no sense to specify an explicit return value.
|