php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30802 Fatal Error: Function mb_convert_case Undefined
Submitted: 2004-11-16 00:39 UTC Modified: 2004-11-16 08:05 UTC
From: downwiththesickness2007 at hotmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.0.1 OS: Windows 2000
Private report: No CVE-ID: None
 [2004-11-16 00:39 UTC] 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

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-16 01:04 UTC] downwiththesickness2007 at hotmail dot com
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.
 [2004-11-16 08:05 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Your PHP was built without support of mbstring functions. 
Please, read http://php.net/mbstring, it's written there.
Under Windows you must uncomment the line with php_mbstring.dll in your php.ini and restart web-server service to enable mbstring module.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Aug 16 04:01:28 2024 UTC