Commit graph

65 commits

Author SHA1 Message Date
conory
c850c9fdcc 디버그 기능 사용시 비로그인 상태에서 발생하는 치명적인 오류 수정
PHP Fatal error:  Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in /common/framework/debug.php:753
2022-03-16 16:07:57 +09:00
Kijin Sung
53a8eaa81c Fix #1884 incorrect caching of debugging enabled flag 2022-03-14 01:25:17 +09:00
BJRambo
be062e2133 Fix warning error better then c7f84a178d 2021-07-15 17:23:42 +09:00
BJRambo
c7f84a178d Fix warning in PHP8.0 2021-07-15 03:26:49 +09:00
conory
faea821e78 Fix warning in PHP 8.0 2021-07-05 14:19:06 +09:00
Kijin Sung
532e172d41 Fix #1658 show error message if debug is enabled for current user 2021-03-18 00:27:15 +09:00
Kijin Sung
1003f0ea49 Fix #1642 Fix #1647 보완
주의: 여기서 Context가 아닌 Session을 참조하면 무한루프에 빠지면서 memory_limit을 초과할 수 있음
2021-03-17 23:54:18 +09:00
Kijin Sung
fef8b10ce6 Fix #1642 Fix #1647 distinguish not-logged-in state before session start and after session start 2021-03-17 23:40:29 +09:00
Kijin Sung
f4758b7570 Fix #1610 memory leak in initial debug status check 2021-02-10 00:27:04 +09:00
Kijin Sung
9b714acb55 Show memory usage in debug panel 2021-02-09 23:52:35 +09:00
Kijin Sung
c5ceafc841 Fix debug disabled if first error or warning occurs before session start 2021-02-09 01:21:33 +09:00
Kijin Sung
e368cb2f2a Fix warnings in Debug class when config is empty 2021-01-28 23:34:15 +09:00
Kijin Sung
ebe28cd884 Fix warning in debug class if config doesn't exist 2021-01-28 22:46:52 +09:00
Kijin Sung
1a204d8c52 Completely disable Debug logging if it is not enabled for the current user
관리자 또는 특정 IP에서만 디버그 기능을 사용하도록 설정된 경우,
그 밖의 요청에서는 어떤 에러메시지, 쿼리, 트리거 소요시간 등의 기록도
디버그 클래스에 저장하지 않도록 변경합니다.

워닝이 많이 발생하는 PHP 8.0에서는 20~30%의 성능 개선 효과가 있습니다.
2021-01-07 02:51:43 +09:00
Kijin Sung
417e4d15b0 More fixes to improve PHP 8.0 compatibility 2020-10-31 00:40:28 +09:00
Kijin Sung
90084efd75 Fix undefined indices and incompatible function signatures 2020-10-30 23:14:08 +09:00
Kijin Sung
3e18f2d6ba Add session_start() delay and all query time to debug data 2020-10-30 15:52:52 +09:00
Kijin Sung
85df901924 Misc fixes for compatibility with existing XML queries and schemas 2020-06-30 14:43:42 +09:00
Kijin Sung
902b931b89 Provide methods to tell total elapsed time 2020-06-29 22:30:48 +09:00
conory
c2221a25e6 캐시가 없는 상황에서 DB 연결 에러시 DB 에러 메세지 대신 php 치명적 에러가 나오는 문제 수정
(라이믹스 오류 화면 출력시에도 DB 연결이 사용되므로 Debug::displayErrorScreen() 함수를 거치면 치명적 에러가 발생되기에 Exception로 처리하지 않았음)
라이믹스가 설치되지 않은 상태에서는 "에러 로그로 확인하라는 메세지" 없이 에러가 바로 출력되도록 수정
2019-01-17 18:26:46 +09:00
Kijin Sung
6e0a51520d Don't encode Unicode when printing JSON error message 2018-12-20 11:55:04 +09:00
Kijin Sung
335d356c0c Don't print error in JSON if not an AJAX request
https://xetown.com/questions/1131537
2018-12-20 11:47:05 +09:00
Kijin Sung
bf6dca0f7d 디버그에서 최후의 수단으로 text를 출력하는 경우에도 상황에 맞는 인코딩 및 escape 처리 2018-12-18 14:36:48 +09:00
conory
ff79092019 디버깅 편의를 위해 오류 페이지 출력 도중 오류가 또 발생된다면 무시하고 그냥 text로 출력
https://xetown.com/questions/1123378
2018-12-15 01:13:37 +09:00
Kijin Sung
7b9fe8f7f2 Revert "Fix var_export() not working for stdClass in PHP < 7.3"
This reverts commit 3f7f802585.
2018-12-13 18:59:27 +09:00
Kijin Sung
3f7f802585 Fix var_export() not working for stdClass in PHP < 7.3 2018-12-13 15:22:11 +09:00
Kijin Sung
f278ae5e75 Add methods to enable/disable Debug log collection
크론탭 등에서 다수의 쿼리를 실행하거나 각종 일괄처리 작업을 할 때
디버그 기록 때문에 메모리 사용량이 무한정 증가하는 문제 방지
2018-05-30 20:48:04 +09:00
Kijin Sung
2dd549f076 Add methods to clear debug entries (for long-running scripts) 2018-01-16 15:03:36 +09:00
Kijin Sung
b1a4d322c7 Update admin check function in Debug::displayErrorScreen() 2017-10-15 23:42:38 +09:00
Kijin Sung
2db14c1ea9 Show query errors in debug panel and error log 2016-12-13 14:09:51 +09:00
Kijin Sung
cf6c5f727e Add option to control error logging 2016-09-14 13:13:29 +09:00
Kijin Sung
2dddc982a7 Treat user warnings as same as PHP warnings 2016-07-03 17:27:59 +09:00
Kijin Sung
6791208ae1 Prevent function arguments from being exposed in the error log
Also: Produce backtrace when a regular error occurs
Also: Remove unnecessary check for DEBUG_BACKTRACE_IGNORE_ARGS
(This is not necessary in PHP > 5.3.6)
2016-06-15 17:03:32 +09:00
Kijin Sung
2d54687a52 Add slow remote requests to debug content 2016-06-08 16:15:32 +09:00
Kijin Sung
88ffabfb7c Improve error handling in AJAX requests 2016-04-16 17:51:31 +09:00
Kijin Sung
740de5caf3 Replace FileHandler calls and other paths in Rhymix Framework 2016-03-18 21:03:22 +09:00
Kijin Sung
a33b961c62 Do not display HTML error page if the current SAPI is CLI 2016-03-16 16:31:27 +09:00
Kijin Sung
a6a1b25f2d Always allow debugging from localhost 2016-03-15 10:21:40 +09:00
Kijin Sung
93b045fa17 Fix incorrect use of global constant in Debug class 2016-03-15 09:59:38 +09:00
Kijin Sung
cb229c2d66 Clean up namespaces 2016-03-14 21:04:27 +09:00
Kijin Sung
544170b530 Move IpFilter class to Security namespace 2016-03-13 10:24:52 +09:00
Kijin Sung
0adb13ca30 Add inRanges() and validateRanges() methods to IpFilter class 2016-03-13 10:18:52 +09:00
Kijin Sung
c09a759ace Do not write debug entries to error log if debugging is disabled 2016-03-09 15:19:22 +09:00
CONORY
cf26f20461 Merge pull request #338 from conory/pr/add_function
lang() 함수 추가
2016-03-06 17:09:30 +09:00
conory
90400e2b5f 모두 lang() 함수로 변경 2016-03-06 17:01:15 +09:00
Kijin Sung
7b0c24e67c Improve debug settings 2016-03-06 14:13:34 +09:00
Kijin Sung
34a86defb6 Fix #321 incorrect display of objects in debugPrint() 2016-03-02 09:40:14 +09:00
Kijin Sung
bfe6be6535 Never allow warnings to be printed before headers 2016-02-16 16:35:29 +09:00
Kijin Sung
231e7100a1 Fix duplicate namespace in IpFilter class call 2016-02-16 11:48:16 +09:00
Kijin Sung
2c7f220445 Do not exit in Debug shutdown handler 2016-02-16 11:43:03 +09:00