Bug #72449 [Opn->Fbk]: bug of rtrim,ltrim

From: Date: Sun, 19 Jun 2016 03:00:25 +0000
Subject: Bug #72449 [Opn->Fbk]: bug of rtrim,ltrim
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201719@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72449&edit=1 ID: 72449 Updated by: requinix@php.net Reported by: youbuwei at yeah dot net Summary: bug of rtrim,ltrim -Status: Open +Status: Feedback Type: Bug -Package: PHP Language Specification +Package: Strings related Operating System: Mac OS X 10.11.5 PHP Version: 7.0.7 Block user comment: N Private report: N New Comment: Seems to be working just fine. https://3v4l.org/UUcjO Previous Comments: ------------------------------------------------------------------------ [2016-06-19 02:53:46] youbuwei at yeah dot net Description: ------------ the result of "rtrim" function and "ltrim" function and "trim" function is same. Test script: --------------- <?php $str = '---12323123123---'; echo trim($str, '-'); echo "\n"; echo rtrim($str, '-'); echo "\n"; echo ltrim($str, '-'); echo "\n"; Expected result: ---------------- 12323123123 ---12323123123 12323123123--- Actual result: -------------- 12323123123 12323123123 12323123123 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72449&edit=1

« previous php.bugs (#201719) next »