#34989 [Opn->Bgs]: Function ucwords does not work properly all the time on PHP 5.0.4
| From: | tony2001@php.net | Date: | Wed, 26 Oct 2005 08:49:21 +0000 |
| Subject: | #34989 [Opn->Bgs]: Function ucwords does not work properly all the time on PHP 5.0.4 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87065@lists.php.net to get a copy of this message | ||
ID: 34989
Updated by: tony2001@php.net
Reported By: claudiu at daltila dot com
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: Linux
PHP Version: 5.0.5
New Comment:
We can't fix something that we can't reproduce.
Previous Comments:
------------------------------------------------------------------------
[2005-10-26 10:42:15] claudiu at daltila dot com
The code I can send U is making part of a big project. I'm not allowed
to send code example, but we can discuss on YM to see the exact site
I'm working ok and to see the bug.
------------------------------------------------------------------------
[2005-10-26 10:24:46] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2005-10-26 10:18:07] claudiu at daltila dot com
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 this bug report at http://bugs.php.net/?id=34989&edit=1