Revision Date Author Comments
# 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.


# 25f1c405 25-Sep-2020 Nikita Popov

Update ext/standard parameter names

Closes GH-6214.


# c37a1cd6 10-Sep-2020 Máté Kocsis

Promote a few remaining errors in ext/standard

Closes GH-6110


# 2c96780e 20-Aug-2020 Máté Kocsis

Fix UNKNOWN default values in ext/standard

Closes GH-6026


# 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 ...