remove x-powered-by from php 5.2.3 cgi module

From: Date: Sat, 06 Sep 2008 12:42:25 +0000
Subject: remove x-powered-by from php 5.2.3 cgi module
Groups: php.internals 
Request: Send a blank email to internals+get-40303@lists.php.net to get a copy of this message
i've got a webserver which runs php 5.2.3 via fastcgi, and i've recently tried to remove the x-powered-by header for security reasons. however, changing the php.ini expose-php directive value to off made no difference. After searching a little on google for this problem, it came out that there is no configuration directive for this, and so i created a little patch for the cgi sapi module to solve it. you can find the patch at http://docs.cshell.gr/patches/xpoweredby-cgiphp5.2.3.patch . hope it helps many people who encounter the same problem. you can also argue for this at http://www.cshell.gr/?p=113 .

« previous php.internals (#40303) next »