HTTP Basic Authentication workaround under Apache FastCGI

HTTP Basic Authentication under Apache with CGI/FastCGI doesn't work.
This is a workaround to get it working.

Source : 
https://github.com/symfony/symfony/issues/1813