I keep geting lots of this errors in my httpd/error_log
[Fri Nov 13 10:53:35 2009] [error] [client 189.145.xxx.xxx] PHP Deprecated: Function ereg() is deprecated in /var/lib/zm/www/includes/functions.php on line 808, referer: http://xxx.xxx.org/zm/index.php
[Fri Nov 13 10:53:35 2009] [error] [client 189.145.xxx.xxx] PHP Deprecated: Function ereg() is deprecated in /var/lib/zm/www/includes/functions.php on line 813, referer: http://xxx.xxx.org/zm/index.php
[Fri Nov 13 10:53:35 2009] [error] [client 189.145.xxx.xxx] PHP Deprecated: Function ereg() is deprecated in /var/lib/zm/www/includes/functions.php on line 808, referer: http://xxx.xxx.org/zm/index.php
[Fri Nov 13 10:53:35 2009] [error] [client 189.145.xxx.xxx] PHP Deprecated: Function ereg() is deprecated in /var/lib/zm/www/includes/functions.php on line 813, referer: http://xxx.xxx.org/zm/index.php
How can I solve this? I'm using
- Zoneminder-svn
- PHP 5.3.0-5
- apache 2.2.14-2
Function ereg() is deprecated
Re: Function ereg() is deprecated
Change section in functions.php (ZM Version 1.24.2 ) to:DREMA wrote:I keep geting lots of this errors in my httpd/error_log
[Fri Nov 13 10:53:35 2009] [error] [client 189.145.xxx.xxx] PHP Deprecated: Function ereg() is deprecated in /var/lib/zm/www/includes/functions.php on line 808, referer: http://xxx.xxx.org/zm/index.php
[Fri Nov 13 10:53:35 2009] [error] [client 189.145.xxx.xxx] PHP Deprecated: Function ereg() is deprecated in /var/lib/zm/www/includes/functions.php on line 813, referer: http://xxx.xxx.org/zm/index.php
[Fri Nov 13 10:53:35 2009] [error] [client 189.145.xxx.xxx] PHP Deprecated: Function ereg() is deprecated in /var/lib/zm/www/includes/functions.php on line 808, referer: http://xxx.xxx.org/zm/index.php
[Fri Nov 13 10:53:35 2009] [error] [client 189.145.xxx.xxx] PHP Deprecated: Function ereg() is deprecated in /var/lib/zm/www/includes/functions.php on line 813, referer: http://xxx.xxx.org/zm/index.php
How can I solve this? I'm using
- Zoneminder-svn
- PHP 5.3.0-5
- apache 2.2.14-2
Code: Select all
if (preg_match( '/MSIE ([0-9].[0-9]{1,2})/',$_SERVER['HTTP_USER_AGENT'],$logVersion))
{
$version = $logVersion[1];
$browser = 'ie';
}
elseif (preg_match( '#Safari/([0-9.]+)#',$_SERVER['HTTP_USER_AGENT'],$logVersion))
{
$version = $logVersion[1];
$browser = 'safari';
}
elseif (preg_match( '#Konqueror/([0-9.]+)#',$_SERVER['HTTP_USER_AGENT'],$logVersion))
{
$version = $logVersion[1];
$browser = 'konqueror';
}
elseif (preg_match( '/Opera ([0-9].[0-9]{1,2})/',$_SERVER['HTTP_USER_AGENT'],$logVersion))
{
$version = $logVersion[1];
$browser = 'opera';
}
elseif (preg_match( '#Mozilla/([0-9].[0-9]{1,2})#',$_SERVER['HTTP_USER_AGENT'],$logVersion))
{
$version = $logVersion[1];
$browser = 'mozilla';
}
else
{
$version = 0;
$browser = 'unknown';
}
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Thank you jcpu, i added it to to a page i just made to centralize all bug fixes:
http://www.zoneminder.com/wiki/index.ph ... 2_Bugfixes
http://www.zoneminder.com/wiki/index.ph ... 2_Bugfixes
- Sir Veillance
- Posts: 11
- Joined: Tue Nov 13, 2007 3:44 am
- Location: Germany
this would affect all php programs running on the server (unless you copy the php.ini into your zm directory and manipulated that one)kingofkya wrote:open up php.ini and comment out the sections on errors
What one should do is
- grep error_reporting *.php
change all occurrences to error_reporting(E_ALL ^ (E_NOTICE | E_DEPRECATED));
If you want to keep E_NOTICE, use error_reporting(E_ALL ^ E_DEPRECATED);
Martin from Germany