Phutil is not yet loaded during preamble, so we can't use it.
This change fixes a regression introduced here, fixing PHP 8.1 support:
rP96ae4ba13acb: PHP 8.1: fixes for strlen() not accepting NULL anymore, part 2
Ref T15064
Differential D25119
Fix regression in preamble avivey on Apr 7 2023, 21:27. Authored by
Details
Phutil is not yet loaded during preamble, so we can't use it. This change fixes a regression introduced here, fixing PHP 8.1 support: rP96ae4ba13acb: PHP 8.1: fixes for strlen() not accepting NULL anymore, part 2 Ref T15064 Run instance with non-empty HTTP_X_FORWARDED_FOR header, instance doesn't crash.
Diff Detail
Event Timeline
Comment Actions Feel free to reopen. It skips non strings, non NULL, and empty strings again without the need of that function. Comment Actions Hoping to be useful, this is ready for land from you. This is a safe method to skip non-strings, NULL, and empty strings. I leave this in an "abandoned" state but feel free to reopen. |