From: downwiththesickness2007 at hotmail dot com Operating system: Windows 2000 PHP version: 5.0.1 PHP Bug Type: Unknown/Other Function Bug description: Fatal Error: Function mb_convert_case Undefined
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 bug report at http://bugs.php.net/?id=30802&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30802&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30802&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30802&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30802&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30802&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30802&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30802&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30802&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30802&r=support Expected behavior: http://bugs.php.net/fix.php?id=30802&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30802&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30802&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30802&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30802&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30802&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30802&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30802&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30802&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30802&r=mysqlcfg