Bug #66467 [Opn->Spm]: Using rtrim function in php 5.4.24
| From: | rasmus@php.net | Date: | Sat, 11 Jan 2014 19:55:11 +0000 |
| Subject: | Bug #66467 [Opn->Spm]: Using rtrim function in php 5.4.24 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183723@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66467&edit=1
ID: 66467
Updated by: rasmus@php.net
Reported by: krunaldoshi202 at gmail dot com
Summary: Using rtrim function in php 5.4.24
-Status: Open
+Status: Spam
Type: Bug
Package: Output Control
Operating System: Cent os 6.4
PHP Version: 5.4.24
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2014-01-11 17:00:48] krunaldoshi202 at gmail dot com
Description:
------------
Its very simple error in rtrim function might be wrong pattern matching
Test script:
---------------
echo rtrim("<a title=\"Music Directed by A.R. Rahman\"
href=\"/music-directors/a-r-rahman.html\">A.R. Rahman</a><span>,
</span>","<span>, </span>");
Expected result:
----------------
<a title=\"Music Directed by A.R. Rahman\"
href=\"/music-directors/a-r-rahman.html\">A.R. Rahman</a>
Actual result:
--------------
<a title="Music Directed by A.R. Rahman"
href="/music-directors/a-r-rahman.html">A.R. Rahm
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66467&edit=1