History log of /PHP-8.2/ext/mbstring/tests/bug79149.phpt (Results 1 – 9 of 9)
Revision Date Author Comments
# 74859783 11-Jun-2021 Nikita Popov

Migrate SKIPIF -> EXTENSIONS (#7138)

This is an automated migration of most SKIPIF extension_loaded checks.


# cafceea7 24-Sep-2020 Nikita Popov

Update mbstring parameter names

Closes GH-6207.


# fa3b8c75 01-Apr-2020 George Peter Banyard

Promote unknown encoding throws in encoding array/string list

For the string list we emit still emit a warning by comparing arg_num to 0

Closes GH-5337


# 90eeca25 28-Mar-2020 George Peter Banyard

Convert some unknown encoding warnings to ValueErrors in ext/mbstring

Promotes only the warnings where the encoding comes only from a string.
Functions which accept an array of encodings

Convert some unknown encoding warnings to ValueErrors in ext/mbstring

Promotes only the warnings where the encoding comes only from a string.
Functions which accept an array of encodings will be fixed at a later stage.

Closes GH-5317

show more ...


# 7cea789c 30-Mar-2020 Nikita Popov

Parse mb_convert_encoding() encodings only once

Instead of re-parsing them for every converted value. Also reuse
the generic parse_array() helper.


# cd5a29b8 30-Mar-2020 Nikita Popov

Properly report unknown encoding in encoding lists

And clean up the related array and list parsing code.


# 5589bf4d 29-Jan-2020 Nikita Popov

Fix length inconsistency in mb_convert_encoding

Don't mix strlen() and ZSTR_LEN(). If the encoding contains a
NULL byte, this will overflow the buffer.

NULL bytes will still mak

Fix length inconsistency in mb_convert_encoding

Don't mix strlen() and ZSTR_LEN(). If the encoding contains a
NULL byte, this will overflow the buffer.

NULL bytes will still make this behave oddly because the consuming
code will cut off the string there, but let's address that in master...

show more ...


# 4327b113 22-Jan-2020 Christoph M. Becker

Fix test expectation

As of PHP 8.0.0, array to string conversion raises a warning.


# 94c9dc49 22-Jan-2020 Christoph M. Becker

Fix #79149: SEGV in mb_convert_encoding with non-string encodings

We must not assume that `hash_entry` `IS_STRING`, but rather use
`encoding_str` which is guaranteed to be.