PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Script Installation

Reply
 
Thread Tools
Old 03-28-2005, 06:43 AM   #1
wedmaster
Green Mole
 
Join Date: Mar 2005
Posts: 4
Question install error!undefined function: mb_eregi()

Fatal error: Call to undefined function: mb_eregi() in d:\usr\www\html\code\phpdig188\includes\config.php on line 109

what's the problem?
wedmaster is offline   Reply With Quote
Old 03-28-2005, 01:12 PM   #2
bloodjelly
Purple Mole
 
Join Date: Dec 2003
Posts: 106
Looks like your version of PHP doesn't support that function. Check this out: http://codewalkers.com/phpdocs/function.mb-eregi.html

It says only versions 4.2.0+ support mb_eregi.
bloodjelly is offline   Reply With Quote
Old 03-28-2005, 05:47 PM   #3
wedmaster
Green Mole
 
Join Date: Mar 2005
Posts: 4
thanks a lot
wedmaster is offline   Reply With Quote
Old 04-21-2005, 07:36 AM   #4
tonyb
Green Mole
 
Join Date: Apr 2005
Posts: 1
Seems PHP 5 doesn't support mb_eregi() as I found trying to upgrade PHPDig from a copy a few years old - so can I assume this will get fixed sometime soon as can't now upgrade any of our servers, and I guess a lot of other people wil be affected as well?

Probably wasn't a good idea relying on an experimental function in the first place?

"This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk."

TIA

Tony
tonyb is offline   Reply With Quote
Old 04-21-2005, 08:12 AM   #5
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hmm, I think PHP 5 does support mbstring. Look in the php.ini file and check out the php.ini example at http://www.php.net/manual/en/ref.mbstring.php

Not sure what manual you were reading: The mb_eregi function was experimental, but php.net now says the following FWIW:


mb_eregi

(PHP 4 >= 4.2.0)

mb_eregi -- Regular expression match ignoring case with multibyte support

Description

int mb_eregi ( string pattern, string string [, array regs] )

mb_eregi() executes the regular expression match with multibyte support, and returns 1 if matches are found. This function ignore case. If the optional third parameter was specified, the function returns the byte length of matched part, and the array regs will contain the substring of matched string. The functions returns 1 if it matches with the empty string. If no matches found or error happend, FALSE will be returned.

The internal encoding or the character encoding specified in mb_regex_encoding() will be used as character encoding.

See also: mb_regex_encoding(), mb_ereg().


Other posts have indicated a possible issue with PhpDig 1.8.8 RC1 running on PHP 5, but I'm not yet sure if this is related to php.ini settings or whether some PhpDig code needs reworking.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error: Call to undefined function: mb_eregi() drdrew42 Script Installation 1 12-04-2007 03:08 AM
Fatal error: Call to undefined function: odbc_connect() NPeart1 Coding & Tutorials 0 12-20-2005 08:21 AM
Call to undefined function: mb_eregi() PHPfranky Troubleshooting 0 12-03-2005 07:40 AM
Call to undefined function: is_executable() switch Troubleshooting 3 03-13-2004 09:13 AM
Fatal error: Call to undefined function: is_executable() lionel.cleran Script Installation 1 03-09-2004 10:30 AM


All times are GMT -8. The time now is 05:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.