提交 75ac76b4 authored 作者: Raymond Chandler's avatar Raymond Chandler

ereg_replace is deprecated and throws a notice, replaced it with preg_replace...…

ereg_replace is deprecated and throws a notice, replaced it with preg_replace... having a - before the --> to close a comment throws xml parser errors

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/contrib@14821 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 68147efc
......@@ -193,8 +193,8 @@ class fs_curl {
sprintf('Total # of Queries Run: %d', $this->db->counter)
);
$this -> comment(sprintf("Estimated Execution Time Is: %s"
, (ereg_replace(
'^0\.([0-9]+) ([0-9]+)$', '\2.\1', microtime()) - START_TIME)
, (preg_replace(
'/^0\.(\d+) (\d+)$/', '\2.\1', microtime()) - START_TIME)
));
$this -> comments2xml($this -> xmlw, $this -> comments);
......@@ -320,6 +320,7 @@ class fs_curl {
syslog(LOG_NOTICE, $debug_str);
break;
case 1:
$debug_str = preg_replace('/-/', ' - ', $debug_str);
$this -> comment($debug_str);
break;
case 2:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论