(❀╹◡╹)
[PHP] preg_match_all 에러 본문
입력스트링값이 너무 길어지면 값을 못받아오는 문제 발생
해결방법
php.ini
[Pcre]
;PCRE library backtracking limit.
;pcre.backtrack_limit=100000
;PCRE library recursion limit.
;Please note that if you set this value to a high number you may consume all
;the available process stack and eventually crash PHP (due to reaching the
;stack size limit imposed by the Operating System).
;pcre.recursion_limit=100000
pcre.backtrack_limit 항목의 주석해제
소스
ini_set('pcre.backtrack_limit', 원하는값);
소스 상단에 추가
'Programing > WEB' 카테고리의 다른 글
[PHP] 구글 reCaptcah v3 (0) | 2020.04.02 |
---|---|
[Oracle] MySql Limit 와 같이 데이터 조회하기 (0) | 2020.03.26 |
[JS + PHP] 이미지 업로드 시 자동 회전되는 문제 해결 (0) | 2020.01.20 |
[JS] safari에서 animate scrollTop 이 작동하지 않을 경우 (0) | 2020.01.16 |
[JS] safari에서 iframe scroll이 작동하지 않는 경우 (0) | 2020.01.16 |