History log of /PHP-8.4/ext/standard/basic_functions.stub.php (Results 76 – 100 of 226)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# b10bcb4f 11-Jun-2021 Joe Watkins

fix bad refactor of #7136


# 4f51a11a 10-Jun-2021 Calvin Buckley

Enable net_get_interfaces on IBM i PASE

On IBM i, getifaddrs is available renamed as Qp2getifaddrs; freeifaddrs
and struct ifaddr follow a similar fate. I assume this is in case AIX

Enable net_get_interfaces on IBM i PASE

On IBM i, getifaddrs is available renamed as Qp2getifaddrs; freeifaddrs
and struct ifaddr follow a similar fate. I assume this is in case AIX
decides to add it (as if). As such, just use the same implementation,
but rename the standard ones to the IBM i definitions and include its
header.

show more ...


# b4b848bf 26-May-2021 Máté Kocsis

Fix the signature of ini_alter()

It should be the same as ini_set()


# 76d1120a 28-Apr-2021 Nikita Popov

Remove assert_options() return value info

The ASSERT_CALLBACK value is not validated at all -- it's possible
to set it to an arbitrary value. As such, the function can also
return an

Remove assert_options() return value info

The ASSERT_CALLBACK value is not validated at all -- it's possible
to set it to an arbitrary value. As such, the function can also
return any value or type (even without outright abuse, the opcache
func info was wrong in that the return can be rcn, and the array
can be array_of_ref).

show more ...


# 59d5b3dd 22-Apr-2021 Niklas Keller

Accept null for microseconds argument in stream_select() (#6879)

The deprecation of passing null is thrown otherwise.

If the timeout is calculated conditionally before calling strea

Accept null for microseconds argument in stream_select() (#6879)

The deprecation of passing null is thrown otherwise.

If the timeout is calculated conditionally before calling stream_select(), passing to avoid the deprecation seems unreasonable, example:

https://github.com/amphp/amp/blob/7d4bbc6e0b47c6bb39b6cce1a4b5942e0c5125fb/lib/Loop/NativeDriver.php#L286

Also enforce that if $seconds is null, then $microseconds should be null as well. However 0 is still accepted (with deprecation) for backwards compatibility.

show more ...


# cbcfd860 13-Apr-2021 David Gebler

Add fsync() and fdatasync() functions

fsync is a straightforward wrapper around the same C function
(implemented on Windows API as _commit() with identical signature).

From the

Add fsync() and fdatasync() functions

fsync is a straightforward wrapper around the same C function
(implemented on Windows API as _commit() with identical signature).

From the man pages:

fsync() transfers ("flushes") all modified in-core data of (i.e.,
modified buffer cache pages for) the file referred to by the file
descriptor fd to the disk device (or other permanent storage
device) so that all changed information can be retrieved even if
the system crashes or is rebooted. This includes writing through
or flushing a disk cache if present. The call blocks until the
device reports that the transfer has completed.

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

Closes GH-6650.

show more ...


# 4e98e65d 11-Apr-2021 Rowan Tommins

Remove the "getdir" function which was introduced accidentally

The actual name of this function is dir(), but ever since it was
introduced in PHP 3, its internal name was "getdir", leadi

Remove the "getdir" function which was introduced accidentally

The actual name of this function is dir(), but ever since it was
introduced in PHP 3, its internal name was "getdir", leading to it
being mistaken for an alias. This went unnoticed until the switch
to stubs for generating arginfo, at which point getdir() became a
real but undocumented function.

Fixes bug #80914.

Closes GH-6855.

show more ...


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


# 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.4.6, php-7.2.31, php-7.4.6RC1, php-7.3.18RC1, 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, php-7.3.15, php-7.2.27, php-7.4.2, php-7.3.14, php-7.3.14RC1, php-7.4.2RC1, php-7.4.1, php-7.2.26, php-7.3.13, 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
# 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.


12345678910