Bug #80339 [NEW]: fatal error on calling strrpos

From: Date: Sun, 08 Nov 2020 18:48:03 +0000
Subject: Bug #80339 [NEW]: fatal error on calling strrpos
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230203@lists.php.net to get a copy of this message
From: info at backups dot nl Operating system: ubuntu server PHP version: 8.0.0RC3 Package: *General Issues Bug Type: Bug Bug description:fatal error on calling strrpos Description: ------------ I get a fatal error on calling strrpos when the haystack is empty. I now have to check the haystack before calling strrpos, $haystack=''; $pos = strrpos($haystack, '.', -1); May other issue was brutally closed for replies. https://bugs.php.net/bug.php?id=80336 I don't understand why as the last answer given by you is incorrect. -- Edit bug report at https://bugs.php.net/bug.php?id=80339&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80339&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80339&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80339&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80339&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80339&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80339&r=support Expected behavior: https://bugs.php.net/fix.php?id=80339&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80339&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80339&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80339&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80339&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80339&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80339&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80339&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80339&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80339&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80339&r=mysqlcfg

« previous php.bugs (#230203) next »