It seems that after we switched to a paid license last night, some PHP are no longer working.
The code block below is now failing, where prior to switching off the trial license, it was not.
It's happening in multiple sites, even when caching is completely turned off.
Same on PHP 5.6, 7.0 and 7.3
Has anyone seen anything like this before?
The code block below is now failing, where prior to switching off the trial license, it was not.
PHP:
function makeXMLTree($data)
{
$output = array();
$parser = xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
xml_parse_into_struct($parser, $data, $values, $tags);
xml_parser_free($parser);
$hash_stack = array();
foreach ($values as $key => $val) {
switch ($val['type']) {
case 'open':
array_push($hash_stack, $val['tag']);
break;
case 'close':
array_pop($hash_stack);
break;
case 'complete':
array_push($hash_stack, $val['tag']);
if (isset($val['value'])) {
eval("\$output['" . implode($hash_stack, "']['") . "'] = \"{$val['value']}\";");
}
array_pop($hash_stack);
break;
}
}
return $output;
}
Same on PHP 5.6, 7.0 and 7.3
Has anyone seen anything like this before?