php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71180 The mb_string extension have a bug in windows.
Submitted: 2015-12-21 11:45 UTC Modified: 2016-01-03 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: cevin dot cheung at gmail dot com Assigned:
Status: No Feedback Package: *Web Server problem
PHP Version: 7.0.1 OS: Win10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
40 + 23 = ?
Subscribe to this entry?

 
 [2015-12-21 11:45 UTC] cevin dot cheung at gmail dot com
Description:
------------
The mb_string extension have a bug.

In browser && (apache || nginx), the extension is not loaded.
But , In console, the extension is loaded and okay.

And, The Yii PHP Framework it's not worked error report as below:

Uncaught Error: Call to undefined function yii\web\mb_strlen() in script.php:394

Test script:
---------------
<?php

phpinfo();

echo mb_strlen('1','utf-8');


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-21 18:26 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2015-12-21 18:26 UTC] ab@php.net
Thanks for the report. It seems that a relative path is used in the extension_dir ini directive. It is likely that Apache will change CWD to its own root, so please use an absolute path to the extension dir.

Thanks.
 [2016-01-03 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 22 02:01:28 2024 UTC