ID:               30802
 User updated by:  downwiththesickness2007 at hotmail dot com
 Reported By:      downwiththesickness2007 at hotmail dot com
 Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: Windows 2000
 PHP Version:      5.0.1
 New Comment:

Just to inform you, this MAY sound like a support question. However, I
do believe that if I copy and paste an example given in the PHP manual
and it returns this error then there is either a bug with this function
or an error in the PHP manual, which in either case deserves attention.


Previous Comments:
------------------------------------------------------------------------

[2004-11-16 00:39:59] downwiththesickness2007 at hotmail dot com

Description:
------------
I am trying to use the mb_convert_case() function. When the php page is
run, I receive a fatal error which says that I am calling an undefined
function. I referred to your page about this function in the PHP manual
(http://us2.php.net/manual/en/function.mb-convert-case.php). I even
created a separate page called casetest.php in which the only php code
is the example about "Mary had a little lamb" copied and pasted from
the function's manual page referred to above. I still receive the same
error. In the situation I just described, I am running PHP 5.0.0
installed by WinLAMP on Apache.

Next, even after uploading to a webhost (cjb.cc) that uses PHP 4.3.9 on
a Linux server, I still receive the error. (If you'd like to see it:
http://hellonull.cjb.cc/casetest.php) I've included the phpinfo
function on that page to provide information that may be necessary to
assess the problem.

Reproduce code:
---------------
<?php
phpinfo();
echo "<br><br>";
$str = "mary had a Little lamb and she loved it so";
$str = mb_convert_case($str, MB_CASE_UPPER, "UTF-8");
echo $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
$str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8");
echo $str; // Prints Mary Had A Little Lamb And She Loved It So
?> 

Expected result:
----------------
Apart from the result of phpinfo, I expected to see "Mary Had A Little
Lamb And She Loved It So".

Actual result:
--------------
After the phpinfo results:

Fatal error: Call to undefined function: mb_convert_case() in
/home/vhosts/hellonull.cjb.cc/casetest.php on line 5


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30802&edit=1

Reply via email to