Bug #73441 [Nab]: mb_internal_encoding() never returns
| From: | requinix@php.net | Date: | Wed, 02 Nov 2016 19:59:20 +0000 |
| Subject: | Bug #73441 [Nab]: mb_internal_encoding() never returns | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205158@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73441&edit=1
ID: 73441
Updated by: requinix@php.net
Reported by: inge at vabekk dot no
Summary: mb_internal_encoding() never returns
Status: Not a bug
Type: Bug
Package: mbstring related
Operating System: Ubuntu 16.04
PHP Version: 7.0.12
Block user comment: N
Private report: N
New Comment:
It is valid. The problem is that your PHP 7 setup does not have mbstring installed while your PHP 5
setup did. It's a configuration issue when you set up your Ubuntu server.
And in case it wasn't clear enough, the error message is telling you that the function was not
defined. Does not exist. Which is because the extension that defined it was not loaded.
https://www.google.com/search?q="Call+to+undefined+function+mb_internal_encoding"
Previous Comments:
------------------------------------------------------------------------
[2016-11-02 19:27:35] inge at vabekk dot no
Hard to find good documentation for this. The function documentation states that it should be valid
for php7 - the need for this install should be made more clear. The error did not occur for php5.
------------------------------------------------------------------------
[2016-11-02 19:05:43] requinix@php.net
You don't have the mbstring extension installed.
apt-get install php-mbstring
------------------------------------------------------------------------
[2016-11-02 19:03:24] inge at vabekk dot no
I run this function alone and get this result:
php erter.php
HERE 1
PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in
/Store/inge/bin/erter.php:3
Stack trace:
#0 {main}
thrown in /Store/inge/bin/erter.php on line 3
There is no return from the function. This is php 7.
------------------------------------------------------------------------
[2016-11-02 18:54:26] requinix@php.net
It still works. https://3v4l.org/oDJBr
------------------------------------------------------------------------
[2016-11-02 18:53:17] inge at vabekk dot no
The "UTF-8" should be surrounded by quotes - I used a variable and forgot them.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=73441
--
Edit this bug report at https://bugs.php.net/bug.php?id=73441&edit=1