Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Deprecated: PHP tartup: The /e modifier is deprecated, use
AndyPSV
post 28.10.2018, 12:27:50
Post #1





Grupa: Zarejestrowani
Postów: 393
Pomógł: 5
Dołączył: 6.02.2003
Skąd: The.Luciferian.Doctrine.p
df

Ostrzeżenie: (30%)
XX---


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);
Go to the top of the page
+Quote Post
Tomplus
post 30.10.2018, 12:01:38
Post #2





Grupa: Zarejestrowani
Postów: 1 831
Pomógł: 225
Dołączył: 20.03.2005
Skąd: Będzin

Ostrzeżenie: (0%)
-----


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. );
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 16.04.2024 - 09:33