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

# 0c2d4d69 26-Aug-2019 Nikita Popov

Make sure that params with null default are marked nullable

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

# c1c8538f 20-Aug-2019 George Peter Banyard

Promote warnings to errors in array_rand()

# 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

Revision tags: php-7.4.0beta4
# baeb10d7 19-Aug-2019 inem0o

Add sha1 arginfo stubs

# 8150c65a 19-Aug-2019 inem0o

Add pageinfo arginfo stubs

# b7c4d8e8 19-Aug-2019 inem0o

Add metaphone arginfo stubs

# ff7900f5 16-Aug-2019 inem0o

Add md5 arginfo stubs

# f795bdfd 16-Aug-2019 inem0o

Add lcg arginfo stubs

12345678910