History log of /php-src/ext/standard/basic_functions.stub.php (Results 101 – 125 of 235)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 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 ...

# e547ea43 22-Sep-2020 Nikita Popov

http_build_query() cannot fail

Assert that ht is not null and make php_url_encode_hash_ex() return
void to clarify that this is an infallible function.

# 0fbebfd1 22-Sep-2020 Nikita Popov

html_entity_decode() cannot fail

php_unescape_html_entities() never returns null, so this function
can never return false.

php_unescape_html_entities() probably should be failin

html_entity_decode() cannot fail

php_unescape_html_entities() never returns null, so this function
can never return false.

php_unescape_html_entities() probably should be failing with OOM
for the "overflow" case, but even if it did, it would not be
signalled through a false return value.

show more ...

# 84be22f1 22-Sep-2020 Nikita Popov

Validate phonemes parameter of metaphone()

And thus avoid the false return value.

# d0fb2f40 22-Sep-2020 Nikita Popov

substr_compare() cannot return false

# 5d9ab53a 22-Sep-2020 Nikita Popov

Check string bounds in strspn/strcspn

strspn/strcspn are string search functions, and as such should throw
ValueError on out-of-bounds offsets, just like strpos etc do.

# ade57e69 22-Sep-2020 Nikita Popov

substr_replace() cannot return false

# 64af12d1 19-Sep-2020 Máté Kocsis

Add support for `@implementation-alias` in stubs

Closes GH-6170

# 46d22e43 16-Sep-2020 Máté Kocsis

Change int parameter types to bool when the parameter behaves as bool

Closes GH-6148

# de912821 16-Sep-2020 Máté Kocsis

Display string default values in stubs more uniformly

Settling on using quoted string

# c76910cd 16-Sep-2020 Máté Kocsis

Display types in stubs more uniformly

In preparation for generating method signatures for the manual.

This change gets rid of bogus false|null return types, a few unnecessary traili

Display types in stubs more uniformly

In preparation for generating method signatures for the manual.

This change gets rid of bogus false|null return types, a few unnecessary trailing backslashes, and settles on using ? when possible for nullable types.

show more ...

12345678910