Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Deprecated: PHP tartup: The /e modifier is deprecated, use
Forum PHP.pl > Forum > PHP
AndyPSV
Deprecated: PHP Startup: The /e modifier is deprecated, use preg_replace_callback instead in /s0cialb/libs/tpl/class.compiler.php on line 165

165 linia to:
  1. $file_contents = preg_replace("!{$ldq}\*.*?\*{$rdq}!se","",$file_contents);
Tomplus
Ogólnie masz napisane że jeżeli chcesz użyć modyfikatora `e` to musisz użyć funkcji callback

Powinno to zadziałać:

  1. $file_contents = preg_replace_callback(
  2. "!{$ldq}\*.*?\*{$rdq}!",
  3. function($matches) { return ''; },
  4. $file_contents
  5. );
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.