Bug #13352: trim/rtrim/ltrim do not work as advertised
| From: | kevin dot way at overtone dot org | Date: | Mon, 17 Sep 2001 20:02:50 +0000 |
| Subject: | Bug #13352: trim/rtrim/ltrim do not work as advertised | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-66133@lists.php.net to get a copy of this message | ||
From: kevin.way@overtone.org
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: Unknown/Other Function
Bug description: trim/rtrim/ltrim do not work as advertised
<?php
echo rtrim('foo bar ', ' ');
?>
if you specify a character class as the second argument (like the
documentation states is legal), you get returned nothing at all. a quick
look at string.c seems to indicate no evidence of this ever working, is the
code wrong, or the documentation?
--
Edit bug report at: http://bugs.php.net/?id=13352&edit=1