Einzelnen Beitrag anzeigen
  #4  
Alt 26.07.2017, 12:34:14
MikeDD MikeDD ist offline
Anfänger
 
Registriert seit: Jul 2017
Alter: 47
Beiträge: 4
AW: Umstellung auf php7 - Warning: preg_replace(): The /e modifier is no longer suppo

die Funktion

PHP-Code:
protected function replaceFunctions() 
** *{ 

** * * *
// Includes ersetzen ( {include file="..."} ) 

** * * *$this->template preg_replace_callback("/{include file="(.*).(.*)"}/"
** * * * * * * * * *function (
$treffer) { 



** * * * * * * * * * * *
$aufruf $this->templateDir.''.$treffer[1].'.'.$treffer[2]; 


** * * * * * * * * * * *return 
file_get_contents($aufruf); 
** * * * * * * * * *}, 
$this->template); 


** * * *
// Kommentare löschen 
** * * *#$this->template = preg_replace("/".$this->leftDelimiterC."(.*)".$this->rightDelimiterC."/isUe", "", $this->template); 

** * * *return *true


** *} 
macht was sie soll. Ob diese von der Syntax richtig ist bin ich mir jetzt nicht 100% sicher. Die Function loop läuft jedoch nicht und alle Versuche diese mit einen callback auszustatten schlagen fehl.
Mit Zitat antworten