php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68852 broken strrpos with negative offset
Submitted: 2015-01-18 13:43 UTC Modified: -
From: j dot tvr at centrum dot cz Assigned:
Status: Closed Package: Strings related
PHP Version: master-Git-2015-01-18 (snap) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: j dot tvr at centrum dot cz
New email:
PHP Version: OS:

 

 [2015-01-18 13:43 UTC] j dot tvr at centrum dot cz
Description:
------------
This broke down very recently (probably due to https://github.com/php/php-src/commit/2f1ddff2a5f8d877537218c19137a4e8a022120a).

Test script:
---------------
var_dump(strrpos("/documents/show/5474", '/', -20));

Expected result:
----------------
int(0)

Actual result:
--------------
int(15)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-18 15:19 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=f3052c5d2f86f9dac756b7c9519017b22b99ed3e
Log: Fixed bug #68852 (broken strrpos with negative offset)
 [2015-01-18 15:19 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:39 UTC] davey@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=f3052c5d2f86f9dac756b7c9519017b22b99ed3e
Log: Fixed bug #68852 (broken strrpos with negative offset)
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 11:01:24 2019 UTC