History log of /PHP-8.2/ext/standard/basic_functions.stub.php (Results 151 – 175 of 200)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 4782e8e2 11-Dec-2019 George Peter Banyard

Return empty string instead of NULL in serialize().

Modifiy its return type accordingly and arginfo.

# 51eefd80 10-Dec-2019 Máté Kocsis

Add stubs for standard library

# 9563449d 11-Nov-2019 Máté Kocsis

Add stubs for another batch of standard functions

# 29ef0772 17-Nov-2019 Máté Kocsis

Remove magic quotes legacy

# 63392602 17-Nov-2019 Máté Kocsis

Remove ezmlm_hash() function

# 144b41ce 17-Nov-2019 Máté Kocsis

Remove money_format() function

# 64468d1e 17-Nov-2019 Máté Kocsis

Remove convert_cyr_string() function

# b63c6252 17-Nov-2019 Máté Kocsis

Remove hebrevc() function

# a603c06e 05-Dec-2019 Nikita Popov

Support "string or array" in zpp

This is one of our more common argument unions. Usage is just
prototyped in a few places, certainly not a full conversion.

I'm removing the str_

Support "string or array" in zpp

This is one of our more common argument unions. Usage is just
prototyped in a few places, certainly not a full conversion.

I'm removing the str_replace.phpt test, because aparently it was
split up into smaller tests at some point, but the original has
not been removed.

Closes GH-4970.

show more ...

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

12345678