Bug #13352 Updated: trim/rtrim/ltrim do not work as advertised
| From: | jeroen@php.net | Date: | Mon, 17 Sep 2001 21:27:25 +0000 |
| Subject: | Bug #13352 Updated: trim/rtrim/ltrim do not work as advertised | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-66142@lists.php.net to get a copy of this message | ||
ID: 13352
Updated by: jeroen
Reported By: kevin.way@overtone.org
Old Status: Closed
Status: Bogus
Old Bug Type: Unknown/Other Function
Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.0.6
New Comment:
Bogusfied. By the way, I moved the note a bit more to the top (and that's an understatement).
Change will appear soon on www.php.net (there seem to be some manual-generation problems, so really
don't know when...)
Previous Comments:
------------------------------------------------------------------------
[2001-09-17 16:24:38] rasmus@php.net
The documentation states:
Note: The second parameter was added in PHP 4.0.7
------------------------------------------------------------------------
[2001-09-17 16:24:19] mfischer@php.net
Verified to work with latest CVS. 4.0.6 had no support for second paramter so I might guess your
version number is wrong in the report. Please also test with CVS.
- Markus
------------------------------------------------------------------------
[2001-09-17 16:02:50] kevin.way@overtone.org
<?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 this bug report at http://bugs.php.net/?id=13352&edit=1