From: phpbugs at localpin dot com Operating system: N/A PHP version: 4.3.9 PHP Bug Type: Documentation problem Bug description: rtrim/ltrim summary only says strips whitespace
Description: ------------ The summary for rtrim only says "Strip whitespace from the end of a string" whereas in fact the function can be used to strip any character. I suggest "Strip characters from the end of a string". The detailed description can make it clear that the default character is whitespace. The docs are particularly misleading on the summary page, where a user looking for a function to strip a non-whitespace char would have to guess that the documentation was not correct! This is exactly what I did. http://be2.php.net/manual/en/ref.strings.php Doc error occurs here also: http://be2.php.net/manual/en/function.rtrim.php Same case for ltrim. -- Edit bug report at http://bugs.php.net/?id=30646&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30646&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30646&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30646&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30646&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30646&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30646&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30646&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30646&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30646&r=support Expected behavior: http://bugs.php.net/fix.php?id=30646&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30646&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30646&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30646&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30646&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30646&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30646&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30646&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30646&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30646&r=mysqlcfg
