2
0
forked from Wavyzz/dolibarr

Fix: functions "ereg", "ereg_replace", "eregi", "eregi_replace" is deprecated since php 5.3.0

This commit is contained in:
Regis Houssin
2009-10-22 15:09:04 +00:00
parent 8c9dd5dff0
commit 37c2825f93
68 changed files with 183 additions and 183 deletions

View File

@@ -1436,7 +1436,7 @@ function _fact()
$this->_advance();
return $result;
}
elseif (eregi("^[A-Z0-9\xc0-\xdc\.]+$",$this->_current_token))
elseif (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/i",$this->_current_token))
{
// if it's a function call
$result = $this->_func();