Commit graph

59 commits

Author SHA1 Message Date
Kijin Sung
16b6544f9d Fix null return value when regexp replace fails on invalid input 2025-09-20 11:34:54 +09:00
Kijin Sung
1c92b1baf5 Use array_key_first() and array_key_last() internally 2025-07-12 12:20:20 +09:00
Kijin Sung
b5a22b2aa8 Prepare for array_first() and array_last() becoming available in PHP 8.5
https://wiki.php.net/rfc/array_first_last
2025-07-12 12:18:45 +09:00
Kijin Sung
e2af4512e0 Fix missing or incorrect doc comments, type declarations, etc. 2025-06-02 22:33:04 +09:00
Kijin Sung
3003c31189 Update copyright notice #2436 2025-03-23 20:58:28 +09:00
Kijin Sung
baadb36e37 Improve escape_css() to accept most common CSS expressions 2025-03-18 23:53:06 +09:00
Kijin Sung
2c05d3f0c7 #2527 보완: \n 뒤에 공백 남을 수 있는 문제 수정 2025-03-18 22:37:51 +09:00
dewekk
2276110b0f
utf8_normalize_spaces 함수에서 불필요한 공백 문자 추가 제거 2025-03-14 09:46:10 +09:00
Kijin Sung
0c815fc27b Fix incorrect return type of utf8_trim() if input string contains invalid UTF-8 sequence 2024-12-04 15:59:16 +09:00
Kijin Sung
7e142722d4 Remove polyfill for is_countable() 2024-11-19 00:00:45 +09:00
Kijin Sung
6e2bab02cc Be more permissive about null values passed to lang() and Context::getLang() 2023-12-18 21:19:33 +09:00
Kijin Sung
b6e8d41be8 Add type hints and use class constants where applicable in Rhymix Framework 2023-10-03 02:33:24 +09:00
Kijin Sung
a7ac14ecbd Add type declarations to global functions where possible 2023-09-24 22:32:49 +09:00
Kijin Sung
1ab8f3470f Merge branch 'develop' into pr/whitespace 2023-01-30 21:49:10 +09:00
Kijin Sung
e1a3961973 Fix mixing tabs and spaces 2023-01-17 21:04:51 +09:00
Kijin Sung
ca35eda1da Fix #2068 type error in utf8_clean() 2023-01-17 21:04:33 +09:00
Kijin Sung
a9f72a5cd2 Remove trailing whitespace 2023-01-17 20:57:44 +09:00
Kijin Sung
651238916b Fix deprecation warnings in PHP 8.2 2023-01-17 00:15:12 +09:00
Kijin Sung
e0a041bb3d Fix deprecation warnings in PHP 8.2 2023-01-16 22:42:04 +09:00
Kijin Sung
c07efe7905 Fix deprecation notices in PHP 8.2 #2064 2023-01-16 21:24:59 +09:00
Kijin Sung
cd427e04ec Fix special case for contains() when the needle is empty 2022-12-02 15:52:26 +09:00
Kijin Sung
928a24fac0 Add polyfills for str_contains(), str_starts_with(), str_ends_with() for PHP < 8.0 2022-12-02 15:45:58 +09:00
Kijin Sung
d93027078e Mark old, rarely used, and/or not recommended functions as deprecated 2022-08-15 18:31:10 +09:00
Kijin Sung
8abe1b1d7d Add option to escape() to keep user lang codes intact #1976 2022-08-15 18:06:26 +09:00
Kijin Sung
8c161bc28d Various fixes to improve PHP 8.0 compatibility
- XmlParser 클래스가 PHP 내장 클래스가 되어버려서 XeXmlParser로 변경
- 함수나 파라미터의 형태가 맞지 않아서 치명적인 오류 나는 곳 수정
- undefined 변수 및 배열 키 다수 수정 (치명적인 오류는 아님)
- 계속 수정중...
2020-10-31 00:25:26 +09:00
Kijin Sung
d9a63c30ce Remove problematic special characters in utf8_clean() 2020-07-31 14:58:11 +09:00
Kijin Sung
494e0ee028 Clean up usage of is_countable() 2020-06-08 20:35:54 +09:00
Min-Soo Kim
a641b3103a is_countable?! 2020-06-07 22:56:21 +09:00
conory
77122a32b2 is_command() 대체 2019-10-09 23:28:23 +09:00
conory
16e44d44c7 움직이지 않는 gif도 mp4로 변환되는 문제 수정
FFmpeg 사용 불가 안내 메시지 추가
추후에 활용하기 위한 type, width, height, duration 컬럼 추가
업로드시 이미지, 오디오, 동영상 파일의 확장자가 잘못된 경우 올바른 확장자를 덧붙이는 기능 추가
2019-10-01 22:50:38 +09:00
Kijin Sung
72577ce6bb Fix #1174 Add number_shorten() function and 'shorten' template filter 2019-07-27 21:33:30 +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
7e48c4989e Revert "Fix var_export() not working for ArrayObject class"
This reverts commit e527269633.
2018-12-13 18:59:18 +09:00
Kijin Sung
e527269633 Fix var_export() not working for ArrayObject class 2018-12-13 15:29:33 +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
6f35f5bafc Fix strict count() behavior in PHP 7.2 2017-12-01 01:42:03 +09:00
Kijin Sung
54cf5bb056 Add comment about base64_encode_urlsafe() 2017-09-12 23:56:20 +09:00
Kijin Sung
2a023f0854 Also use the <span> tag to determine whether an editor was used 2017-06-29 18:53:46 +09:00
Kijin Sung
3c772bf1cf Separate <p> tests from <br> tests 2017-06-29 18:44:52 +09:00
Kijin Sung
804533222c Add is_html_content() function to detect whether a string is HTML 2017-06-29 18:25:36 +09:00
Kijin Sung
8147044802 Fix toBool() and add more test cases 2017-04-08 22:02:03 +09:00
Kijin Sung
f73580945d Remove unnecessary polyfill for hex2bin() 2017-04-08 21:57:34 +09:00
Kijin Sung
387dd1f78b Fix #741 do not allow empty HTML content in document and comment 2017-03-06 10:50:06 +09:00
Kijin Sung
91ff3c6323 Add array_escape() function to escape all keys and values of an array or object 2017-01-26 14:41:03 +09:00
Kijin Sung
ed50a57f9c Add formatter class and associated unit tests 2016-03-18 14:10:10 +09:00
Kijin Sung
c23a1949cc Merge pull request #378 from kijin/pr/url-conversion
경로↔URL 변환 및 정리 함수 추가
2016-03-16 16:09:38 +09:00
Kijin Sung
f9ea115c19 Fix some minor bugs in global functions and add unit tests 2016-03-16 10:09:48 +09:00
Kijin Sung
f983335833 Add function aliases for URL and path conversion 2016-03-15 13:54:33 +09:00
conory
0e99f8eb44 lang() 함수의 langType 기능 제거 2016-03-06 23:42:06 +09:00
conory
fc09ea0d47 파라미터없이 lang()함수 사용시 현재 사용하고 있는 언어타입 반환
lang 에 set 메소드를 추가함 (실제로 set이 되지않는 문제수정)
2016-03-06 16:35:01 +09:00