History log of /PHP-8.0/ext/standard/basic_functions.stub.php (Results 51 – 75 of 146)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1e9a5c67 10-Aug-2020 Tyson Andre

Rename standard array function parameters to $array

This is targeting 8.0.

`$arg` seems like a poor choice of a name,
especially if the function were to have arguments added.

Rename standard array function parameters to $array

This is targeting 8.0.

`$arg` seems like a poor choice of a name,
especially if the function were to have arguments added.

In many cases, the php.net documentation already has $array for these functions.
E.g. https://www.php.net/manual/en/function.array-intersect.php

I'd assume that since named arguments was added to 8.0 near the feature freeze,
PHP's maintainers had planned to make the names consistent
and gradually use the same name for docs and implementation.

show more ...


# af80d8a1 05-Aug-2020 Máté Kocsis

Add more argument types to stubs

Closes GH-5943


# 0d330e1a 28-Jul-2020 Máté Kocsis

Add a few missing parameter types in stubs

Related to GH-5627


# cdc85233 27-Jul-2020 Derick Rethans

Last pass of 'More consistent parameter names for date/time functions'


# be9c5daf 21-Jul-2020 Nikita Popov

Remove null from highlight_* return types

Also fix show_source() discrepancy in func_info.


# 9d37a574 21-Jul-2020 Nikita Popov

Remove bool return type from assert_options

Not seeing any way this function can return bool.


# 895a22c0 17-Jul-2020 Nikita Popov

Add missing image_type_to_extension() argument


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


Revision tags: php-7.2.32, php-8.0.0alpha2, php-7.3.20
# c4a0ba8d 06-Jul-2020 George Peter Banyard

Refactor levenshtein()

Closes GH-5816


# fecea7b8 06-Jul-2020 Christoph M. Becker

Fix sapi_windows_vt100_support() arginfo


Revision tags: php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1, php-7.4.7, php-7.3.19
# aa9b0ccd 05-Jun-2020 Máté Kocsis

Add tests to check mismatching function signatures

Closes GH-5666


# 6b45039f 02-Jun-2020 Nikita Popov

Add some mixed types


Revision tags: php-7.4.7RC1, php-7.3.19RC1
# b3718430 25-May-2020 Máté Kocsis

Annotate internal functions with the mixed type

Closes GH-5618


# cbf86efc 25-May-2020 Máté Kocsis

Fix ZPP of v*printf()


# 50a9f511 13-May-2020 Nikita Popov

Allow null callback to array_filter()

With same behavior as not passing it.


Revision tags: php-7.4.6, php-7.2.31
# 31fb6a08 05-May-2020 William Hudgins

Add str_starts_with() and str_ends_with()

RFC: https://wiki.php.net/rfc/add_str_starts_with_and_ends_with_functions

Closes GH-5300.


# 8d346f76 03-May-2020 George Peter Banyard

Use ZPP int|string and add ValueError for Windows codepages

Closes GH-5517


Revision tags: php-7.4.6RC1, php-7.3.18RC1
# 34f727e6 27-Apr-2020 George Peter Banyard

Use ZPP check for string|int|null arguments in array_column()


# 31a626cf 01-May-2020 Máté Kocsis

Remove the deprecated is_real() function

Closes GH-5506


Revision tags: php-7.2.30, php-7.4.5, php-7.3.17, 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, php-7.4.3, php-7.2.28, php-7.3.15RC1, php-7.4.3RC1
# ef0e4478 02-Feb-2020 Your Name

Add get_debug_type() function

RFC: https://wiki.php.net/rfc/get_debug_type


# beff93f6 10-Apr-2020 Máté Kocsis

Fix the default parameter values of stream_socket_client()

$timeout and $flags were mixed up


# fcc6da3e 09-Apr-2020 Nikita Popov

Mark $time argument of touch() as UNKNOWN as well

For some reason I thought that passing 0 is same as current time,
but that's not the case.


# 636c827a 09-Apr-2020 Nikita Popov

Mark fgets() argument as UNKNOWN

If no value is passed, this reads as much as necessary, not 1024
bytes.


# 62e8dcbc 09-Apr-2020 Christoph M. Becker

Change parameter default to always available value

`SIGTERM` is only defined in ext/pcntl, and as such never available on
Windows. Moving the constant to ext/standard does not make much

Change parameter default to always available value

`SIGTERM` is only defined in ext/pcntl, and as such never available on
Windows. Moving the constant to ext/standard does not make much sense,
because that parameter is actually unused on Windows. Therefore, we
use the magic number `15` instead, what is also done in the PHP manual.

show more ...


# 87ba975e 09-Apr-2020 Nikita Popov

Make touch() $atime parameter UNKNOWN

The actual default here is $time, not 0.


123456