From:             trustpunk at gmail dot com
Operating system: Windows
PHP version:      5.2.0
PHP Bug Type:     Feature/Change Request
Bug description:  "expose_php" does not work with ini_set() function.

Description:
------------
I can't get the "expose_php" Configuration option to work with
the ini_set function. I'm shocked that it doesn't work.

Reproduce code:
---------------
Let's test this on the "get_headers" function.

<pre>
<?php
ini_set("expose_php", 0);

$headers = get_headers("http://localhost/phpinfo.php";, 1);

print_r($headers);
?>
</pre>

The same server is requesting a PHP page to see if the
"expose_php" configuration worked.

Output:

Array
(
    [0] => HTTP/1.1 200 OK
    [X-Powered-By] => PHP/5.2.0
    [Content-type] => text/html
    [Connection] => Close
    [Date] => Thu, 09 Nov 2006 03:05:24 GMT
    [Server] => Abyss/2.3.2-X2-Win32 AbyssLib/2.3.2
)

Why is PHP still exposed? I set it to Off!


Expected result:
----------------
I expect this to happen.

Array
(
    [0] => HTTP/1.1 200 OK
    [Content-type] => text/html
    [Connection] => Close
    [Date] => Thu, 09 Nov 2006 03:05:24 GMT
    [Server] => Abyss/2.3.2-X2-Win32 AbyssLib/2.3.2
)

Actual result:
--------------
The "expose_php" Configuration from the ini_set function did
not work. I would like this to be fixed. 

-- 
Edit bug report at http://bugs.php.net/?id=39441&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39441&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39441&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39441&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39441&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39441&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39441&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39441&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39441&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39441&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39441&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39441&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39441&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39441&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39441&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39441&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39441&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39441&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39441&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39441&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39441&r=mysqlcfg

Reply via email to