Detect and parse HTTP_AUTHORIZATION for basic authentication running php in cgi mode