php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10284 sttchr() function bug
Submitted: 2001-04-11 06:40 UTC Modified: 2001-04-11 13:58 UTC
From: love_015b at hanmail dot net Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.4pl1 OS: linux(redhat6.2)
Private report: No CVE-ID: None
 [2001-04-11 06:40 UTC] love_015b at hanmail dot net
<?
$k="%C5%DA%B7%B9%C5%E4%BA%F1%C5%DA%B7%B9%C5%E4%BA%F1";
$q="%C5%DA";
$b=strrchr($k,$q);
echo $k."<br>";
echo $q."<br>";
echo $b;
?>
///////result//////////
%C5%DA%B7%B9%C5%E4%BA%F1%C5%DA%B7%B9%C5%E4%BA%F1
%C5%DA
%F1

I want this result,"%C5%DA%B7%B9%C5%E4%BA%F1"
Maybe it is function's bug.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-11 13:58 UTC] joey@php.net
Please try reading the manual before submitting bugs.
http://us.php.net/manual/en/function.strrchr.php clearly says
"If needle contains more than one character, the first is used."

Not a bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 13:01:28 2024 UTC