History log of /PHP-8.0/ext/mbstring/mbstring.c (Results 1 – 25 of 719)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 2eb2f9d7 02-Jun-2022 Remi Collet

Fix GH-8685 mbstring requires pcre


# 03816fba 18-Jan-2022 Christoph M. Becker

Fix GH-7902: mb_send_mail may delimit headers with LF only

Email headers are supposed to be separated with CRLF. Period.

We introduce a `CRLF` macro for better comprehensibility rig

Fix GH-7902: mb_send_mail may delimit headers with LF only

Email headers are supposed to be separated with CRLF. Period.

We introduce a `CRLF` macro for better comprehensibility right away.

Closes GH-7907.

show more ...


# d3d6d790 21-Oct-2021 Christoph M. Becker

Fix #76167: mbstring may use pointer from some previous request

We must not reuse per-request memory across multiple requests, so this
check triggered during RINIT makes no sense. As ex

Fix #76167: mbstring may use pointer from some previous request

We must not reuse per-request memory across multiple requests, so this
check triggered during RINIT makes no sense. As explained in the bug
report[1], it can be even harmful, if some request startup fails, and
the pointers refer to already freed memory in the next request.

[1] <https://bugs.php.net/76167>

Closes GH-7604.

show more ...


# 0cafd53d 04-May-2021 Christoph M. Becker

Fix #81011: mb_convert_encoding removes references from arrays

We need to dereference references.

Closes GH-6938.


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
# 9b4094c3 13-Oct-2020 Nikita Popov

Fix incorrect zpp parameter count in mb_substr() / mb_strcut()

These functions only accept 4 params.


# 124bce3c 13-Oct-2020 Nikita Popov

Fix argument nullability in mbstring

These arguments were declared nullable in stubs (and should be
nullable), but didn't accept null in zpp.


Revision tags: php-7.4.12RC1, php-7.3.24RC1, php-7.2.34, php-8.0.0rc1, php-7.4.11, php-7.3.23
# e950ca13 20-Sep-2020 Máté Kocsis

Consolidate the usage of "either" and "one of" in error messages

Closes GH-6173


Revision tags: php-8.0.0beta4, php-7.4.11RC1, php-7.3.23RC1
# c37a1cd6 10-Sep-2020 Máté Kocsis

Promote a few remaining errors in ext/standard

Closes GH-6110


# 1c81a345 14-Sep-2020 Máté Kocsis

Make mb_send_mail() consistent with mail()

The $additional_headers parameter shouldn't accept null.


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

Consolidate new union type ZPP macro names

They will now follow the canonical order of types. Older macros are
left intact due to maintaining BC.

Closes GH-6112


# f33fd9b7 11-Sep-2020 Nikita Popov

Throw ValueError on null bytes in mb_send_mail()

Instead of silently replacing with spaces.


# 5b78d76e 08-Sep-2020 Alex Dowad

mb_str_split is already documented on php.net

So remove TODO comment which implies that it's not.


# 2386f655 08-Sep-2020 Nikita Popov

Always use PCRE for mbstring.http_output_conv_mimetypes

Instead of using either oniguruma or pcre depending on which is
available. We always have PCRE, so use it. This ensures consistent

Always use PCRE for mbstring.http_output_conv_mimetypes

Instead of using either oniguruma or pcre depending on which is
available. We always have PCRE, so use it. This ensures consistent
behavior.

show more ...


# 623bf96e 07-Sep-2020 Nikita Popov

Throw on invalid mb_http_input() type


# d57f9e5e 04-Sep-2020 Nikita Popov

Handle null encoding in mb_http_input()


Revision tags: 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
# 409aa20a 15-Jul-2020 Alex Dowad

Refactor mbfl_convert.c


# 3e800e99 24-Aug-2020 Máté Kocsis

Move custom type checks to ZPP

Closes GH-6034


# b03fd376 11-Jul-2020 Alex Dowad

Code cleanup in mbstring.c


Revision tags: php-7.4.8, php-7.2.32, php-8.0.0alpha2, php-7.3.20
# 7eddcabe 05-Jul-2020 Alex Dowad

Don't guard mbstring code with #ifdef HAVE_MBSTRING

This is just a very silly feature of mbstring -- you can compile the source files with
HAVE_MBSTRING undefined, and it will all just c

Don't guard mbstring code with #ifdef HAVE_MBSTRING

This is just a very silly feature of mbstring -- you can compile the source files with
HAVE_MBSTRING undefined, and it will all just compile to (almost) nothing. What is the
use of this? Why compile the source files and link against them if you don't want the
mbstring extension? It doesn't make any kind of sense.

show more ...


# 62317d59 04-Jul-2020 Alex Dowad

Remove redundant includes from mbstring (and make sure correct config.h is used)

Very interesting... it turns out that when Valgrind support was enabled,
`#include "config.h"` from withi

Remove redundant includes from mbstring (and make sure correct config.h is used)

Very interesting... it turns out that when Valgrind support was enabled,
`#include "config.h"` from within mbstring was actually including the file "config.h"
from Valgrind, and not the one from mbstring!!

This is because -I/usr/include/valgrind was added to the compiler invocation _before_
-Iext/mbstring/libmbfl.

Make sure we actually include the file which was intended.

show more ...


# ddc76e5a 29-Jun-2020 Alex Dowad

Fix typos in comments in mb_send_mail


# a64241b5 27-Jun-2020 Alex Dowad

Remove unused functions from mbstring

- mbfl_buffer_converter_reset
- mbfl_buffer_converter_strncat
- mbfl_buffer_converter_getbuffer
- mbfl_oddlen
- mbfl_filter_output_pipe_

Remove unused functions from mbstring

- mbfl_buffer_converter_reset
- mbfl_buffer_converter_strncat
- mbfl_buffer_converter_getbuffer
- mbfl_oddlen
- mbfl_filter_output_pipe_flush
- mbfl_memory_device_output2
- mbfl_memory_device_output4
- mbfl_is_support_encoding
- mbfl_buffer_converter_feed2
- _php_mb_regex_globals_dtor
- mime_header_encoder_feed
- mime_header_decoder_feed
- mbfl_convert_filter_feed

show more ...


# 8d13348b 03-Jul-2020 Alex Dowad

Separate implementation of mb_{en,de}code_numericentity

Rather than using a magic boolean parameter to choose different behavior of
the subfunction, inline it. The code size doesn't real

Separate implementation of mb_{en,de}code_numericentity

Rather than using a magic boolean parameter to choose different behavior of
the subfunction, inline it. The code size doesn't really grow anyways. And
soon these will be trimmed down more.

show more ...


# 29b02bf2 26-Jun-2020 Alex Dowad

Use new-style argument parsing macros in mbstring.c


# d4ef7ef1 27-Jun-2020 Alex Dowad

Inline unneeded indirection for mbstring memory management

All memory allocation and deallocation for mbstring bounces through a table of
function pointers before going to emalloc/efree/

Inline unneeded indirection for mbstring memory management

All memory allocation and deallocation for mbstring bounces through a table of
function pointers before going to emalloc/efree/etc. But this is unnecessary.
The allocators are never swapped out. Better to just call them directly.

show more ...


12345678910>>...29