History log of /PHP-8.3/ext/standard/basic_functions_arginfo.h (Results 51 – 75 of 215)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 67440096 04-Mar-2022 Patrick Allaert

Added: [zend_]memory_reset_peak_usage() (#8151)


# c4334fc6 26-Dec-2021 Nikita Popov

Remove special chr/count handling in sccp function evaluation

These can be handled by the generic code. Worth noting that count
will usually go through ZEND_COUNT, and chr on constants i

Remove special chr/count handling in sccp function evaluation

These can be handled by the generic code. Worth noting that count
will usually go through ZEND_COUNT, and chr on constants is
evaluated in the compiler, so these are not particularly compile-time
sensitive either.

show more ...


# c5f4ee50 22-Dec-2021 Christoph M. Becker

$context parameter of get_headers() is nullable

Closes GH-7813.


# 32e2d97a 20-Dec-2021 Tyson Andre

Allow internal functions to declare if they support compile-time evaluation, add functions. (#7780)

https://wiki.php.net/rfc/strtolower-ascii means that these functions no longer
depend

Allow internal functions to declare if they support compile-time evaluation, add functions. (#7780)

https://wiki.php.net/rfc/strtolower-ascii means that these functions no longer
depend on the current locale in php 8.2. Before that, this was unsafe to
evaluate at compile time.

Followup to GH-7506

Add strcmp/strcasecmp/strtolower/strtoupper functions

Add bin2hex/hex2bin and related functions

Update test of garbage collection using strtolower to use something else to create a refcounted string

show more ...


# 2127b49c 11-Oct-2021 Máté Kocsis

String default values are enclosed in quotes rather than apostrophes


# 2b25ac6f 24-Sep-2021 Craig Francis

Update stub to show default of ENT_HTML401 (for documentation)

Closes GH-7514.


# c19e4b99 30-Aug-2021 Máté Kocsis

Generate optimizer func info from stubs for ext/standard - part 3 (#7426)


# 0f7e0cf3 30-Aug-2021 Nikita Popov

str_replace() can return the original string


# b49d340f 27-Aug-2021 Máté Kocsis

Generate optimizer func info from stubs for ext/standard - part 2 (#7414)


# 1ce81b6b 27-Aug-2021 Máté Kocsis

Generate optimizer func info from stubs for ext/standard - part 1 (#7413)


# b1822899 24-Aug-2021 Máté Kocsis

Add support for generating optimizer function info from stubs (#7367)


# c58a9f2a 24-Aug-2021 Máté Kocsis

Declare a few missing function return types

Closes GH-7395


# 23b1c4a9 22-Jul-2021 Máté Kocsis

Migrate to PHP-Parser 4.12.0 and regenerate some arginfos


# bed71393 08-Jul-2021 Nikita Popov

Deprecate strptime()

Use date_parse_from_format() or IntlDateFormatter::parse() instead.

Part of https://wiki.php.net/rfc/deprecations_php_8_1.


# b6fa3867 14-Jun-2021 Nikita Popov

Regenerate arginfo file


# f172bb30 11-Jun-2021 Nikita Popov

Regenerate stubs


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


123456789