Issue #3239285 by alexpott: Passing request headers to string functions causes deprecations in PHP 8.1