On PHP versions earlier than 5.4.0, \e is not a valid PHP escape character. Consequently, PhutilUTF8TestCase::testUTF8ConsoleStrlen will fail. Replace \e by its hexadecimal equivalent.
Details
Details
- Reviewers
hach-que epriestley - Group Reviewers
Blessed Reviewers - Commits
- rPHU50185a502e91: Fix failing unit test.
Ran unit tests.
Diff Detail
Diff Detail
- Repository
- rPHU libphutil
- Branch
- utf8-escape
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 1205 Build 1205: [Placeholder Plan] Wait for 30 Seconds
Event Timeline
Comment Actions
Maybe swap the \e in phutil_utf8_console_strlen() just for clarity? It must be getting interpreted consistently by PCRE, but it might be clearer to use an escape byte explicitly (e.g., no one will copy/paste it and run into this issue at some point in the fuutre).