Edit report at https://bugs.php.net/bug.php?id=80336&edit=1
ID: 80336
Updated by: [email protected]
Reported by: info at backups dot nl
Summary: Fatal error: Uncaught ValueError: strrpos():
Argument #3 ($offset) must be con
-Status: Open
+Status: Feedback
Type: Bug
Package: Testing related
Operating System: Ubunutom 20.04
PHP Version: 8.0.0RC3
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Are you absolutely sure that $url contains a non-empty value?
See <https://3v4l.org/YXmj3>.
Previous Comments:
------------------------------------------------------------------------
[2020-11-08 12:56:01] info at backups dot nl
Description:
------------
Hi
I get this fatal error in php 8.0 rc3
Fatal Uncaught ValueError: strrpos(): Argument #3 ($offset) must be contained in argument #1
Why do i get this error on this code. It is exactly as the php documentation describes to use it.
$pos = strrpos($url, '.', -1);
Please advice.
Test script:
---------------
$url='https://myserver.com';
$pos = strrpos($url, '.', -1);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80336&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.