Bug #66467 [NEW]: Using rtrim function in php 5.4.24

From: Date: Sat, 11 Jan 2014 17:00:48 +0000
Subject: Bug #66467 [NEW]: Using rtrim function in php 5.4.24
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183721@lists.php.net to get a copy of this message
From:             krunaldoshi202 at gmail dot com
Operating system: Cent os 6.4
PHP version:      5.4.24
Package:          Output Control
Bug Type:         Bug
Bug description:Using rtrim function in php 5.4.24

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 bug report at https://bugs.php.net/bug.php?id=66467&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=66467&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=66467&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=66467&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=66467&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=66467&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=66467&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=66467&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=66467&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=66467&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=66467&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=66467&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=66467&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=66467&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66467&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=66467&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=66467&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=66467&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66467&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=66467&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=66467&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#183721) next »