Warning: preg_replace(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0
Trong PHP 7, bạn có thể sẽ gặp lỗi như sau:
Warning: preg_replace(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in ...
Để fix lỗi này, chúng ta hãy thêm dòng code pcre.jit=0 vào group [Pcre] trong file php.ini
Cuối cùng, đừng quên khởi động lại máy chủ Apache để các thay đổi có tác dụng.