Bug #72297 [Opn->Nab]: Trim not work as expected.

From: Date: Tue, 31 May 2016 03:06:03 +0000
Subject: Bug #72297 [Opn->Nab]: Trim not work as expected.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201357@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72297&edit=1 ID: 72297 Updated by: laruence@php.net Reported by: levaconline at gmail dot com Summary: Trim not work as expected. -Status: Open +Status: Not a bug Type: Bug Package: Strings related Operating System: Arch linux PHP Version: PHP 7.0.5 (cli) (built: Mar 29 2016 18:07:10) ( NTS ) Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php ".en" means remove any . , e, and n Previous Comments: ------------------------------------------------------------------------ [2016-05-30 22:46:50] levaconline at gmail dot com Summary improved ------------------------------------------------------------------------ [2016-05-30 22:43:09] levaconline at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.trim --- This looks like bug in trim function: ------------------------------------------ $name = "File_Manager_Remote.en"; $name = trim($name, '.en'); echo $name; ------------------------------------------ Result: File_Manager_Remot Expected result is: File_Manager_Remote Trim removes one more unexpected character. Test script: --------------- $name = "File_Manager_Remote.en"; $name = trim($name, '.en'); echo $name; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72297&edit=1

« previous php.bugs (#201357) next »