Bug #72003 [Com]: mb_strpos argument error not correct
| From: | mattkasper at gmail dot com | Date: | Mon, 11 Apr 2016 18:04:29 +0000 |
| Subject: | Bug #72003 [Com]: mb_strpos argument error not correct | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-200486@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72003&edit=1
ID: 72003
Comment by: mattkasper at gmail dot com
Reported by: mattkasper at gmail dot com
Summary: mb_strpos argument error not correct
Status: Open
Type: Bug
Package: mbstring related
Operating System: Suse 12 on s390
PHP Version: 7.0.5
Block user comment: N
Private report: N
New Comment:
Apparently we were running 7.0.2 (not 7.0.5) and after updating to 7.0.5, the issue was resolved and
mb functions were working correctly.
Previous Comments:
------------------------------------------------------------------------
[2016-04-11 15:45:24] mattkasper at gmail dot com
Description:
------------
mb_strpos takes $needle, $haystack, $offset and $encoding as arguments but an error is thrown
complaining of an empty delimiter when valid arguments are passed.
Test script:
---------------
<?php
var_dump(mb_strpos("test", "test", 0, "UTF-8"));
Expected result:
----------------
int(0)
Actual result:
--------------
Warning: MB_strpos(): Empty delimiter in test.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72003&edit=1