More fixes for PHP7.2

This commit is contained in:
Rob Lensen
2018-03-21 23:02:46 +01:00
parent 50d8aafc77
commit 3db22c0d33
4 changed files with 4 additions and 10 deletions

View File

@@ -1102,7 +1102,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa
// replaces echo PHP_STRING_LITERAL; with the string literal value
$source = preg_replace_callback(
'/\\<\\?php echo ((?:\'(?:(?:\\\\.)|[^\'])*\')|(?:"(?:(?:\\\\.)|[^"])*"));\\?\\>\\n/',
create_function('$matches', 'eval(\'$tmp=\'.$matches[1].\';\');return $tmp;'),
function($matches) { eval('$tmp='.$matches[1].';');return $tmp; },
$source);
return $source;
}