Fix issue in arcanist whereby when doing an arc patch involving adding or removing a binary file, it falls over with strlen(null) errors.
Fixes T15617
Differential D25409
Fix PHP 8.1 arc patch strlen(null) binary file error Sten on Aug 18 2023, 09:02. Authored by
Details
Fix issue in arcanist whereby when doing an arc patch involving adding or removing a binary file, it falls over with strlen(null) errors. Fixes T15617 arc patch Dxxxx
Diff Detail
Event Timeline
Comment Actions phutil_nonempty_string is basically the exact same thing, but with stricter type control
This comment was removed by Sten. Comment Actions Right - but we are expecting only a null or a string. If we get anything else then I want strlen to fall over, following the fail fast principle. Comment Actions I think phutil_nonempty_string fails faster then strlen (strlen allowing automatic conversion of string-like things to string and phutil_nonempty_string doesn't), but I'm a little confused right now... Comment Actions /me checks phutil_nonempty_string() |