#34989 [NEW]: Function ucwords does not work properly all the time on PHP 5.0.4
| From: | claudiu at daltila dot com | Date: | Wed, 26 Oct 2005 08:18:08 +0000 |
| Subject: | #34989 [NEW]: Function ucwords does not work properly all the time on PHP 5.0.4 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-87061@lists.php.net to get a copy of this message | ||
From: claudiu at daltila dot com
Operating system: Linux
PHP version: 5.0.5
PHP Bug Type: PHP options/info functions
Bug description: Function ucwords does not work properly all the time on PHP 5.0.4
Description:
------------
I used in 2 part of the same php script function ucwords. I one part works
ok...and in other part...doesn't
Reproduce code:
---------------
1.ucwords($row["h1"])
2. echo $tomb[$i]." - ".strtolower($tomb[$i])." -
".ucwords(strtolower($tomb[$i]))."<br>";
Expected result:
----------------
1.
Casino Affiliates
Gambling News
Gambling Rules
Land Based Casinos
Online Casinos
Online Gambling
2.
ONLINE GAMBLING - online gambling - Online Gambling
Home - home - home
Actual result:
--------------
1. ok
2. ONLINE GAMBLING - online gambling - online Gambling
Home - home - home
--
Edit bug report at http://bugs.php.net/?id=34989&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34989&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34989&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34989&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34989&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34989&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34989&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34989&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34989&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34989&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34989&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34989&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34989&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34989&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34989&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34989&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34989&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34989&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34989&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34989&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34989&r=mysqlcfg