php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76706 mbstring.http_output_conv_mimetypes is ignored
Submitted: 2018-08-04 20:59 UTC Modified: 2018-08-04 20:59 UTC
From: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: mbstring related
PHP Version: 7.3.0beta1 OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

 [2018-08-04 20:59 UTC] cmb@php.net
Description:
------------
If mbstring is built without mbregex support,
mbstring.http_output_conv_mimetypes is basically ignored.

The problem is that the return value of the PCRE fallback
implementation of _php_mb_match_regex()[1] is not “normalized” to
return a truthy value in case of match, and a falsey value
otherwise.

[1] <https://github.com/php/php-src/blob/php-7.3.0beta1/ext/mbstring/mbstring.c#L1071-L1074>

Test script:
---------------
ext/mbstring/tests/mb_output_handler_pattern-04.phpt

Expected result:
----------------
Test succeeds

Actual result:
--------------
Test fails

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-04 20:59 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2018-08-04 21:35 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=70ecb6e50b983419f6a2d5e028f9779354047ec1
Log: Fix #76706: mbstring.http_output_conv_mimetypes is ignored
 [2018-08-04 21:35 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 07:01:29 2024 UTC