Bug #73077 [Opn->Dup]: php compatibility: mb_strpos() [offset warning]

From: Date: Wed, 14 Sep 2016 01:33:29 +0000
Subject: Bug #73077 [Opn->Dup]: php compatibility: mb_strpos() [offset warning]
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204019@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73077&edit=1 ID: 73077 Updated by: cmb@php.net Reported by: lars at moelleken dot org Summary: php compatibility: mb_strpos() [offset warning] -Status: Open +Status: Duplicate Type: Bug Package: mbstring related Operating System: Ubuntu 12.04.5 LTS PHP Version: 7.1.0RC1 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Duplicate of bug #73076. Previous Comments: ------------------------------------------------------------------------ [2016-09-14 01:30:07] lars at moelleken dot org Description: ------------ "mb_strpos()" is not compatible with old PHP versions, because it dons't trigger a warning anymore "Offset not contained in string"?! -> https://3v4l.org/o1YNG Test script: --------------- var_dump(mb_strpos('abc', 'a', -1)); Expected result: ---------------- Warning: mb_strpos(): Offset not contained in string in /in/o1YNG on line 3 bool(false) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73077&edit=1

« previous php.bugs (#204019) next »