Bug #80738 [NEW]: mb_stipos function

From: Date: Fri, 12 Feb 2021 13:50:31 +0000
Subject: Bug #80738 [NEW]: mb_stipos function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232088@lists.php.net to get a copy of this message
From:             mikele890 at gmail dot com
Operating system: Linux
PHP version:      8.0.2
Package:          Unknown/Other Function
Bug Type:         Bug
Bug description:mb_stipos function

Description:
------------
php < 8:
  var_dump(false === mb_stripos('123456789', ''));
Result:
  <br />
  <b>Warning</b>:  mb_stripos(): Empty delimiter in <b>[...][...]</b> on
line    <b>4</b><br />
  bool(true)

php 8:
  var_dump(false === mb_stripos('123456789', ''));
Result:
  bool(false)

In versions lesser than 8 it will throw a warning but return true, which
is totally opposite to version 8 result



-- 
Edit bug report at https://bugs.php.net/bug.php?id=80738&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80738&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80738&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80738&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80738&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80738&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80738&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80738&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80738&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80738&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80738&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80738&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80738&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80738&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80738&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80738&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80738&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80738&r=mysqlcfg


Thread (1 message)

  • mikele890 at gmail dot com
« previous php.bugs (#232088) next »