History log of /PHP-8.0/ext/opcache/Optimizer/zend_func_info.c (Results 1 – 25 of 227)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# ef80dcb8 21-Feb-2022 Christoph M. Becker

Fix GH-8074: Wrong type inference of range() result

If either the first or second operand of `range()` may be a string, we
must not exclude the possibility that the result may be an arra

Fix GH-8074: Wrong type inference of range() result

If either the first or second operand of `range()` may be a string, we
must not exclude the possibility that the result may be an array of
longs.

Closes GH-8131.

show more ...


# 0b3a9376 11-Dec-2021 Christoph M. Becker

Fix GH-7759: Incorrect return types for hash() and hash_hmac()

`hash()` and `hash_hmac()` never return `false`; only `hash_file()` and
`hash_hmac_file()` return `false` in case the data

Fix GH-7759: Incorrect return types for hash() and hash_hmac()

`hash()` and `hash_hmac()` never return `false`; only `hash_file()` and
`hash_hmac_file()` return `false` in case the data cannot be read.

Closes GH-7760.

show more ...


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

Fix a few func info entries


# 492821a3 27-Aug-2021 Máté Kocsis

Fix func info for str_replace() and str_ireplace()


# 9d70946b 27-Aug-2021 Nikita Popov

Remove incorrect refcount info for addcslashes()

This function may return the input string.


# cba16646 26-Aug-2021 Nikita Popov

imagecolorsforindex() cannot return false


# 780293ba 26-Aug-2021 Máté Kocsis

Sync ext/mysqli optimizer func info entries with the stubs


# 41ab3697 24-Aug-2021 Máté Kocsis

Fix a few optimizer func info

Closes GH-7396


# 051ff336 20-Jul-2021 Nikita Popov

Fix bug #81272: Fix func info for functions returning EMPTY_ARRAY

The empty array has refcount > 1, so we should indicate this in
func info. In most cases this renders the func info redu

Fix bug #81272: Fix func info for functions returning EMPTY_ARRAY

The empty array has refcount > 1, so we should indicate this in
func info. In most cases this renders the func info redundant,
so drop it entirely.

show more ...


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

mysqli_get_client_info() cannot return null

This method is already deprecated


# 9f6ee9f4 26-May-2021 Nikita Popov

Update func info for mysqli_connect


# 2ceef24f 28-Apr-2021 Nikita Popov

Remove incorrect func info for array_reduce() and pos()

These are both clearly not rc1 functions. As they are otherwise
UNKNOWN_INFO, I'm just dropping them entirely.


# 5acab7eb 28-Apr-2021 Nikita Popov

filter_var_array() may return array_of_ref

This function preserves references in the input array.


# 67c4d1f5 28-Apr-2021 Nikita Popov

fetch_assoc may return array_key_long

If the column name is a number (which is possible at least via
AS clauses), then symtable canonicalization will convert it into
an integer key.


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


# c340f97a 28-Apr-2021 Nikita Popov

password_get_info() may return array_of_null

The algo key is set to null if the algorithm can't be detected.


# c7387ab9 28-Apr-2021 Nikita Popov

getdate() may return array_key_long

This function mostly uses string keys, but the timestamp is
returned at key 0 (why???)


# 98a071e8 28-Apr-2021 Nikita Popov

pg_connect() may return rcn

Without CONNECT_FORCE_NEW, pg_connect() may resuse an existing
connection and refcount may be larger than one.


# 72152613 11-Feb-2021 Nikita Popov

Update func info after password_get_info() change


# 44a311db 04-Jan-2021 Dharman

Fix/improve mysqli stubs

* mysqli_commit $flags default value is 0, not -1.
* A number of functions cannot actually return null.
* mysqli_poll parameter names were incorrect, as this

Fix/improve mysqli stubs

* mysqli_commit $flags default value is 0, not -1.
* A number of functions cannot actually return null.
* mysqli_poll parameter names were incorrect, as this function
has a different signature from select.
* fetch functions apart from fetch_all can return false on failure.

show more ...


Revision tags: php-8.0.0, php-7.3.25, php-7.4.13, php-8.0.0RC5, php-7.4.13RC1, php-8.0.0RC4, php-7.3.25RC1, php-7.4.12, php-8.0.0RC3, php-7.3.24, php-8.0.0RC2, php-7.4.12RC1, php-7.3.24RC1, php-7.2.34, php-8.0.0rc1, php-7.4.11, php-7.3.23
# de77344d 22-Sep-2020 Nikita Popov

Promote pack/unpack format errors

Errors related to invalid format strings (unlike data mismatch
errors) should throw ValueError.

Closes GH-6185.


# 12d087c3 22-Sep-2020 Nikita Popov

Use C zpp for get_class_vars()


# fdd9018b 22-Sep-2020 Nikita Popov

Support uuencoding empty string

Cross checking implementations from other languages, empty strings
are always allowed. PHP's output is peculiar due to it's insistence
to encode a tra

Support uuencoding empty string

Cross checking implementations from other languages, empty strings
are always allowed. PHP's output is peculiar due to it's insistence
to encode a trailing \0, but otherwise sensible and does round-trip
as expected.

show more ...


# e60f927f 22-Sep-2020 Nikita Popov

stream_bucket_new() cannot return false

php_stream_bucket_new() is infallible.


# 9ef2c5c3 22-Sep-2020 Nikita Popov

stream_get_transports/wrappers cannot return false

These may return an empty array, but not false.


12345678910