Summary
Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49
Recent Commits
>
--git a/pts-core/objects/tandem_XmlReader.php b/pts-core/objects/tandem_XmlReader.php
index c399ff5..a09222a 100644
--- a/pts-core/objects/tandem_XmlReader.php
+++ b/pts-core/objects/tandem_XmlReader.php
@@ -36,6 +36,7 @@ class tandem_XmlReader
var $NO_TAG_FALLBACK_VALUE = null;
static $cache = null;
+ var $use_php_preg_functions = false;
function __construct($XML, $DO_CACHE = true)
{
@@ -74,6 +75,11 @@ class tandem_XmlReader
$this->XML_CACHE_TAGS = false;
$this->XML_DATA = $XML;
}
+
+ if(function_exists("preg_match") && function_exists("preg_match_all"))
+ {
+ $this->use_php_preg_functions = true;
+ }
}
function getStatement($STATEMENT_NAME)
{
@@ -165,7 +171,7 @@ class tandem_XmlReader
{
$return = false;
- if(function_exists("preg_match") && function_exists("preg_match_all"))
+ if($this->use_php_preg_functions)
{
if($DO_MULTIPLE)
{
<
Copyright © 2013 by Phoronix Media