History log of /PHP-7.4/ext/mbstring/mbstring.c (Results 51 – 75 of 627)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 9d63f4de 25-May-2018 Nikita Popov

Fixed bug #76319

While at it, also make sure that mbstring case conversion takes
into account the specified substitution character and substitution
mode.


# 0bc4cf90 17-Feb-2018 Anatol Belski

Fix unsigned comparisons


# d7fe3250 05-Feb-2018 Nikita Popov

Match strpos() behavior with mbstring.func_overload

mb_strpos() specifically emulates strpos() behavior when function
overloading is enabled. However, the condition was not changed
w

Match strpos() behavior with mbstring.func_overload

mb_strpos() specifically emulates strpos() behavior when function
overloading is enabled. However, the condition was not changed
when strpos() behavior changed in PHP 7.

show more ...


# a6519d05 02-Jan-2018 Xinchen Hui

year++


# 7a7ec01a 02-Jan-2018 Xinchen Hui

year++


# ccd4716e 02-Jan-2018 Xinchen Hui

year++


# b864e6b5 14-Dec-2017 Dmitry Stogov

Move constants into read-only data segment


# 83e495e0 14-Dec-2017 Dmitry Stogov

Move constants into read-only data segment


# 9e709e2f 14-Dec-2017 Dmitry Stogov

Move constants into read-only data segment


# 185478d0 07-Dec-2017 Dmitry Stogov

Use cheaper SEPARATE macros


# 6a9d2b21 07-Dec-2017 Dmitry Stogov

Cleanup type conversion


# 5cdf37e6 05-Nov-2017 Tyson Andre

Fix proto documents for new global functions

See NEWS and UPGRADING (or arginfo/implementation) for details.


# 3b2e8583 02-Nov-2017 Dmitry Stogov

Overlad functions once in MINIT (instead of on each requestr in RINIT)


# 251c1b1a 28-Oct-2017 Nikita Popov

Fix invalid read in mb_ord()


# 9cf87aa1 24-Oct-2017 Dmitry Stogov

Avoid HashTable allocations for empty arrays (using zend_empty_array).


# a57de26c 08-Oct-2017 Peter Kokot

Refactor mbstring READMEs


# 45ee78e0 06-Oct-2017 Dmitry Stogov

mb_convert_variables() refactored to use simple recursion.
Fixed incorrect recursion protection (previous implementation kept protection flag or apply counter in non-zero state).


# cb9d81ef 05-Oct-2017 Dmitry Stogov

Refactored recursion pretection


# 44e0b79a 19-Sep-2017 Dmitry Stogov

Refactored array creation API. array_init() and array_init_size() are converted into macros calling zend_new_array(). They are not functions anymore and don't return any values.


# fea7957d 04-Aug-2017 Nikita Popov

Optimize mb_chr()

By avoiding an unnecessary copy between a string an zend_string.


# f24db768 04-Aug-2017 Nikita Popov

Optimize mb_ord()

Don't perform a full encoding conversion into UCS4-BE, instead only
perform an input conversion into a wchar device.


# 6b73b2d6 04-Aug-2017 Nikita Popov

Check for empty string in mb_ord()


# 353f7bf4 04-Aug-2017 Nikita Popov

Also check for invalid codepoints in mb_ord()

And return false in that case, instead of returning 0x3f...


# e53162a3 03-Aug-2017 Nikita Popov

Return false on invalid codepoint in mb_chr()

Instead of returning the encoding of the current substitution
character. This allows a robust check for the failure case. The
substituti

Return false on invalid codepoint in mb_chr()

Instead of returning the encoding of the current substitution
character. This allows a robust check for the failure case. The
substitution character (especially the default of "?") is also
a valid output of mb_chr() for a valid input (for "?" that would be
0x3f), so it's a bad choice for an error value.

show more ...


# 41e9ba63 03-Aug-2017 Nikita Popov

Always use Unicode codepoints in mb_ord() and mb_chr()

Previously mb_chr() had two different encoding-dependent behaviors:
* For "Unicode-encodings" it took a Unicode codepoint and retu

Always use Unicode codepoints in mb_ord() and mb_chr()

Previously mb_chr() had two different encoding-dependent behaviors:
* For "Unicode-encodings" it took a Unicode codepoint and returned
its encoded representation.
* Otherwise it returned a big-endian binary encoding of the passed
integer.

Now the input is always interpreted as a Unicode codepoint. If
a big-endian binary encoding is what you want, you don't need
mbstring to implement that.

show more ...


12345678910>>...26