Bug #71808 [Opn->Nab]: Function mb_ereg_replace() undefined in 7.0.4
| From: | requinix@php.net | Date: | Sat, 12 Mar 2016 07:02:09 +0000 |
| Subject: | Bug #71808 [Opn->Nab]: Function mb_ereg_replace() undefined in 7.0.4 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199778@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71808&edit=1
ID: 71808
Updated by: requinix@php.net
Reported by: eacraft13 at gmail dot com
Summary: Function mb_ereg_replace() undefined in 7.0.4
-Status: Open
+Status: Not a bug
Type: Bug
Package: mbstring related
Operating System: Ubuntu 14.04
PHP Version: 7.0.4
Block user comment: N
Private report: N
New Comment:
.
Previous Comments:
------------------------------------------------------------------------
[2016-03-12 06:56:57] eacraft13 at gmail dot com
No they weren't. My fault. Thanks for the reply.
------------------------------------------------------------------------
[2016-03-12 06:47:23] requinix@php.net
Do the other mb_* functions exist? Is the extension even installed?
------------------------------------------------------------------------
[2016-03-12 06:38:55] eacraft13 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.mb-ereg-replace
---
mb_ereg_replace is undefined in 7.0.4
$ php --version
PHP 7.0.4-5+deb.sury.org~trusty+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
Test script:
---------------
<?php
echo mb_ereg_replace('-', ' ', 'new-jersey');
Expected result:
----------------
new jersey
Actual result:
--------------
PHP Fatal error: Uncaught Error: Call to undefined function mb_ereg_replace() in
/home/vagrant/test.php:3
Stack trace:
#0 {main}
thrown in /home/vagrant/test.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71808&edit=1