History log of /PHP-8.3/ext/standard/basic_functions_arginfo.h (Results 176 – 200 of 215)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 04deb532 20-Nov-2019 Máté Kocsis

Promote warning to exception in log() function


# 5624d2eb 01-Dec-2019 Tyson Andre

Make some opcache types consistent with reflection information

Remove functions such as filter_id() where reference counts and types are
identical to what's in opcache.

Remove n

Make some opcache types consistent with reflection information

Remove functions such as filter_id() where reference counts and types are
identical to what's in opcache.

Remove null types from zend_func_info.c that aren't in Reflection
(php would throw now)

Fix the Reflection type information for assert_options()

php > assert_options(ASSERT_CALLBACK, static function() {});
php > var_export(assert_options(ASSERT_CALLBACK));
Closure::__set_state(array(
))

Closes GH-4958.

show more ...


# c58b1233 16-Nov-2019 Máté Kocsis

Add union return types with one class


# 292a1aeb 15-Nov-2019 Nikita Popov

Support union types for args in gen stubs

Using this requires care! The zpp implementation for this union
must be consistent with the arginfo implementation!

Apart from array|ob

Support union types for args in gen stubs

Using this requires care! The zpp implementation for this union
must be consistent with the arginfo implementation!

Apart from array|object, this is probably only the case for
int|float right now.

show more ...


# 40dcf2bd 15-Nov-2019 Nikita Popov

password_hash() can't return false


# 27e83d0f 08-Nov-2019 Máté Kocsis

Add union return types for function stubs


# 9bbbc9e7 08-Nov-2019 Nikita Popov

Add support for union types in stubs

This is the MVP for supporting union types in PHP stubs. Return
types with only builtin types work, which is the part we mainly
need.

Cl

Add support for union types in stubs

This is the MVP for supporting union types in PHP stubs. Return
types with only builtin types work, which is the part we mainly
need.

Closes GH-4895.

show more ...


# ab6b412a 01-Nov-2019 Máté Kocsis

Add stubs for standard lib functions


# 14bdb0cf 04-Nov-2019 Máté Kocsis

Fix consistency issues with array accesses warnings/exceptions

* Change a number of "resource used as offset" notices to warnings,
which were previously missed.
* Throw the "res

Fix consistency issues with array accesses warnings/exceptions

* Change a number of "resource used as offset" notices to warnings,
which were previously missed.
* Throw the "resource used as offset" warning for isset() as well.
* Make array_key_exists() behavior with regard to different key
types consistent with isset() and normal array accesses. All key
types now use the usual coercions and array/object keys throw
TypeError.

Closes GH-4887.

show more ...


Revision tags: php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1
# 93ba3abe 07-Oct-2019 Nikita Popov

Warn on strtr(["" => "x"])

Previously:
* If only ["" => "x"] was present, the original string was returned
without warning.
* If both ["" => "x"] and at least one more eleme

Warn on strtr(["" => "x"])

Previously:
* If only ["" => "x"] was present, the original string was returned
without warning.
* If both ["" => "x"] and at least one more element was present,
false was returned without warning.

New behavior:
* Ignore "" keys in the replacement array (and perform any remaining
replacement).
* Throw a warning indicating that an empty string replacement has
been ignored.

Closes GH-4792.

show more ...


# becda2e0 30-Oct-2019 Nikita Popov

Promote mt_rand() min/max warning to ValueError


# ad9ea5ab 23-Oct-2019 Máté Kocsis

Add stubs for various standard functions

Closes GH-4851.


# fee94da1 28-Oct-2019 Máté Kocsis

Add stubs for directory and file functions


# e7335eb4 21-Oct-2019 Colin O'Dell

Allow array_splice() length to be null


# e6d3146b 21-Oct-2019 Colin O'Dell

Accept null lengths for substr functions()

If a null $length is passed to any of these functions, behave as if no
parameter was passed:

- substr()
- substr_count()
-

Accept null lengths for substr functions()

If a null $length is passed to any of these functions, behave as if no
parameter was passed:

- substr()
- substr_count()
- substr_compare()
- iconv_substr()

show more ...


# 5f80eb78 07-Oct-2019 Nikita Popov

Fix required number of arguments in stubs

* get_parent_class() argument is optional
* Mark array_filter() $callback as optional
* The $base of gmp_strval() is optional
* DateTime

Fix required number of arguments in stubs

* get_parent_class() argument is optional
* Mark array_filter() $callback as optional
* The $base of gmp_strval() is optional
* DateTime constructor also accepts zero arguments
* hash_update_file() stream context is optional
* xmlwriter_write_dtd_entity() $isparam argument is optional

show more ...


# ef9736e0 07-Oct-2019 theodorejb

Convert string function arginfo to PHP stubs


# e60d9da1 02-Oct-2019 theodorejb

Fix array_fill stub return type

This was missed in commit d5e9ef8f0fad00618de62949d362d0980c6250f9.


Revision tags: php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9
# 1ca4ab09 21-Aug-2019 George Peter Banyard

Promote warnings to errors in array_push()

This is in line with the engine change from
https://wiki.php.net/rfc/engine_warnings.


# 70e604ee 21-Aug-2019 George Peter Banyard

Promote warnings to errors in extract()


# d2210dc2 25-Aug-2019 Burak Çakırel

Add assert arginfo stubs

Closes GH-4619.


# a98307df 26-Aug-2019 Nikita Popov

Make arginfo printing of prefer-ref arguments nicer


# a47f170a 26-Aug-2019 Nikita Popov

Assert that symbol table is available in compact()

I believe NULL here is no longer possible due to the dynamic call
check. A similar assumption already exists in the extract()
imple

Assert that symbol table is available in compact()

I believe NULL here is no longer possible due to the dynamic call
check. A similar assumption already exists in the extract()
implementation.

show more ...


# d5f42d68 26-Aug-2019 Theodore Brown

Convert remaining array function arginfo to PHP stubs


# b9c961e1 25-Aug-2019 Olumide Samson

Add some header and html function stub


123456789