Bug #73441 [Fbk->Opn]: mb_internal_encoding() never returns
| From: | inge at vabekk dot no | Date: | Wed, 02 Nov 2016 19:03:26 +0000 |
| Subject: | Bug #73441 [Fbk->Opn]: mb_internal_encoding() never returns | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205155@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
User updated by: inge at vabekk dot no
Reported by: inge at vabekk dot no
Summary: mb_internal_encoding() never returns
-Status: Feedback
+Status: Open
Type: Bug
Package: mbstring related
Operating System: Ubuntu 16.04
PHP Version: 7.0.12
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2016-11-02 18:47:51] requinix@php.net
https://3v4l.org/U3CYn
------------------------------------------------------------------------
[2016-11-02 18:46:41] inge at vabekk dot no
It's easier to describe the output outside of the php statements.
However, I also lost a question mark. So write it this way:
<?php
echo "HERE 1\n";
mb_internal_encoding (UTF-8);
echo "HERE 2\n";
?>
The expected result should be evident.
------------------------------------------------------------------------
[2016-11-02 18:03:22] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Your script is not valid PHP code. It will not execute as PHP but instead display "HERE 1 HERE
2!" in your browser.
------------------------------------------------------------------------
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