Bug #80339 [Opn->Dup]: fatal error on calling strrpos

From: Date: Sun, 08 Nov 2020 18:49:24 +0000
Subject: Bug #80339 [Opn->Dup]: fatal error on calling strrpos
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230204@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80339&edit=1 ID: 80339 Updated by: girgias@php.net Reported by: info at backups dot nl Summary: fatal error on calling strrpos -Status: Open +Status: Duplicate Type: Bug Package: *General Issues Operating System: ubuntu server PHP Version: 8.0.0RC3 -Block user comment: No +Block user comment: Yes Private report: N New Comment: Please discuss this on the internals mailing list instead of opening duplicate bug reports. Previous Comments: ------------------------------------------------------------------------ [2020-11-08 18:48:03] info at backups dot nl 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 this bug report at https://bugs.php.net/bug.php?id=80339&edit=1

« previous php.bugs (#230204) next »