#44044 [NEW]: Error in exemple of trim function in the French documentation

From: Date: Mon, 04 Feb 2008 20:29:58 +0000
Subject: #44044 [NEW]: Error in exemple of trim function in the French documentation
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-502@lists.php.net to get a copy of this message
From: j at darksage dot fr Operating system: PHP version: Irrelevant PHP Bug Type: Translation problem Bug description: Error in exemple of trim function in the French documentation Description: ------------ Error in exemple of trim function in the French documentation. http://fr.php.net/manual/fr/function.trim.php The "Bonjour le monde !" text is badly trimmed. Reproduce code: --------------- $hello = "Bonjour le monde !"; $trimmed = trim($hello, "Bjro"); var_dump($trimmed); string(5) "nur le mnde !" Expected result: ---------------- The correct result will be: $hello = "Bonjour le monde !"; $trimmed = trim($hello, "Bjro"); var_dump($trimmed); string(5) "njour le monde !" Or it is possible to put something like : $hello = "Bonjour le monde !"; $trimmed = trim($hello, "Bron !"); var_dump($trimmed); string(5) "jour le monde" -- Edit bug report at http://bugs.php.net/?id=44044&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44044&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44044&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44044&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44044&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44044&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44044&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44044&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44044&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44044&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44044&r=support Expected behavior: http://bugs.php.net/fix.php?id=44044&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44044&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44044&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44044&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44044&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44044&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44044&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44044&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44044&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44044&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44044&r=mysqlcfg

« previous php.doc.bugs (#502) next »