History log of /PHP-8.0/ext/opcache/Optimizer/zend_func_info.c (Results 26 – 50 of 227)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# aba0ee71 22-Sep-2020 Nikita Popov

Don't return false for empty string in soundex()

Return "0000" instead of false to have a consistent return type.
"0000" is already a possible return value if the string doesn't
cont

Don't return false for empty string in soundex()

Return "0000" instead of false to have a consistent return type.
"0000" is already a possible return value if the string doesn't
contain any letters, such as with soundex(" "). We can treat the
case of soundex("") exactly the same.

show more ...


# e547ea43 22-Sep-2020 Nikita Popov

http_build_query() cannot fail

Assert that ht is not null and make php_url_encode_hash_ex() return
void to clarify that this is an infallible function.


# ade57e69 22-Sep-2020 Nikita Popov

substr_replace() cannot return false


# 8ff2f2f8 21-Sep-2020 Nikita Popov

Return empty array for no rows in pg_fetch_all()

This makes it line up with pg_fetch_all_columns(), as well as
similar functions in other exts, such as mysqli_fetch_all().


# 54f03d31 21-Sep-2020 Nikita Popov

Promote invalid field to ValueError in pgsql

The same error condition is a ValueError in mysqli, be consistent.

Additionally, do not display the argument name for these errors.

Promote invalid field to ValueError in pgsql

The same error condition is a ValueError in mysqli, be consistent.

Additionally, do not display the argument name for these errors.
As the signatures are overloaded, the argument name may not match
the meaning at all.

show more ...


# d1bbc39e 21-Sep-2020 Nikita Popov

pg_unescape_bytea() can only fail on OOM

The implementation did not check for PQunescapeBytea failure
correctly, because it checked for a null pointer after estrndup,
which certainly

pg_unescape_bytea() can only fail on OOM

The implementation did not check for PQunescapeBytea failure
correctly, because it checked for a null pointer after estrndup,
which certainly cannot happen. Inspection of the PGunescapeBytea
implementation has shown that this function can only fail on OOM,
so let's check for that explicitly and remove false as a possible
return type.

While we're here, avoid an unnecessary copy of the result.

show more ...


Revision tags: php-8.0.0beta4, php-7.4.11RC1, php-7.3.23RC1, php-8.0.0beta3, php-7.4.10, php-7.3.22, php-8.0.0beta2, php-7.3.22RC1, php-7.4.10RC1, php-8.0.0beta1, php-7.4.9, php-7.2.33, php-7.3.21, php-8.0.0alpha3, php-7.4.9RC1, php-7.3.21RC1
# 12306728 16-Jul-2020 Sammy Kaye Powers

Add system ID entropy API

The `zend_system_id` is a (true global) system ID that fingerprints a process state. When extensions add engine hooks during MINIT/startup, entropy is added the sys

Add system ID entropy API

The `zend_system_id` is a (true global) system ID that fingerprints a process state. When extensions add engine hooks during MINIT/startup, entropy is added the system ID for each hook. This allows extensions to identify that changes have been made to the engine since the last PHP process restart.

Closes GH-5871

show more ...


Revision tags: php-7.4.8, php-7.2.32, php-8.0.0alpha2, php-7.3.20, php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1, php-7.4.7, php-7.3.19, php-7.4.7RC1, php-7.3.19RC1
# 95f4ee38 22-May-2020 George Peter Banyard

Add some ValueErrors to ext/date

Closes GH-5613


# 7a95e943 03-Jul-2020 George Peter Banyard

Promote warnings to Error in MySQLi extension

Closes GH-5803


# c37a1cd6 10-Sep-2020 Máté Kocsis

Promote a few remaining errors in ext/standard

Closes GH-6110


# d0111d78 13-Sep-2020 George Peter Banyard

Promote warnings to Errors in PostgreSQL extension

Do some drive by indentation fixes
Also fix pg_select() in regards to the $result_type arg which was missing from ZPP

Closes G

Promote warnings to Errors in PostgreSQL extension

Do some drive by indentation fixes
Also fix pg_select() in regards to the $result_type arg which was missing from ZPP

Closes GH-6129

show more ...


# 3861cb87 09-Sep-2020 Nikita Popov

More pgsql func info fixes


# 8a5e3e40 09-Sep-2020 Máté Kocsis

Fix opcache return type info for pgsql functions


# 2369f480 25-Aug-2020 Dmitry Stogov

Infer information about packed/hash arrays and use it for JIT


# 4c89ed61 02-Aug-2020 Máté Kocsis

Promote warnings to exceptions in ext/gettext, ext/sysvmsg and ext/xml

Closes GH-5926


# 2940839d 22-Jul-2020 Dmitry Stogov

Prevent incorrect trasing JIT TSSA usage for range() result type inference


# f7f55792 21-Jul-2020 Nikita Popov

Fix arg/func info

* mysqli_get_server_info() cannot return null. The underlying API
is infallible.
* mysqli_select_db() func info is redundant.
* mb_detect_order() can only

Fix arg/func info

* mysqli_get_server_info() cannot return null. The underlying API
is infallible.
* mysqli_select_db() func info is redundant.
* mb_detect_order() can only return array|true, not array|false.

Also make the func_info.phpt test that is supposed to catch these
kinds of issues actually work.

show more ...


# ae2b214b 21-Jul-2020 Nikita Popov

Check for redundant func info


# 3a9036ac 21-Jul-2020 Nikita Popov

Stricter verification of func info against arg info

Make sure they're actually the same up to cases where func info
allows more accurate expressions. There are some awkward edge cases

Stricter verification of func info against arg info

Make sure they're actually the same up to cases where func info
allows more accurate expressions. There are some awkward edge cases
around true/false/null limitations in union types.

show more ...


# e4c1366b 21-Jul-2020 Nikita Popov

Remove some redundant func info

This is fully covered by arginfo.

The array_merge_recursive() RC information was also wrong,
it should be the same as array_merge().


# 33ddc3bb 21-Jul-2020 Nikita Popov

Fix mb_ereg_search* arg and func info


# be9c5daf 21-Jul-2020 Nikita Popov

Remove null from highlight_* return types

Also fix show_source() discrepancy in func_info.


# 9d37a574 21-Jul-2020 Nikita Popov

Remove bool return type from assert_options

Not seeing any way this function can return bool.


# fda78e59 21-Jul-2020 Nikita Popov

Fix iptcembed func info

This function can return true with $spool >= 2.


# 91d4d244 21-Jul-2020 Dmitry Stogov

Fixed pg_select() function info


12345678910