#46061 [Opn->Bgs]: trim could not work as expected

From: Date: Fri, 12 Sep 2008 10:42:07 +0000
Subject: #46061 [Opn->Bgs]: trim could not work as expected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128901@lists.php.net to get a copy of this message
ID: 46061 Updated by: felipe@php.net Reported By: ddrplayer at foxmail dot com -Status: Open +Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Linux PHP Version: 5.2CVS-2008-09-12 (snap) 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 The second argument expects a char list. Previous Comments: ------------------------------------------------------------------------ [2008-09-12 04:03:55] ddrplayer at foxmail dot com Description: ------------ hi , first of all sorry for my bad english but trim could not work as expected i run the program in 5.14,5.25 ,it could not work as expected. Reproduce code: --------------- <?php $stringendingtag='<ending>'; $s='hello world <abc><ending>'; echo trim($s,'<ending>'); ?> Expected result: ---------------- hello world <abc> Actual result: -------------- hello world <abc ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46061&edit=1

« previous php.bugs (#128901) next »