ID: 47495
User updated by: leha at inkin dot ru
Reported By: leha at inkin dot ru
Status: Open
Bug Type: iPlanet related
Operating System: Linux 2.6.26
PHP Version: 5.2.8
New Comment:
The whole php.ini:
[PHP]
magic_quotes_gpc = off
include_path = ".:/usr:/usr/share/php"
upload_max_filesize = 10M
Previous Comments:
------------------------------------------------------------------------
[2009-02-24 15:02:15] leha at inkin dot ru
Description:
------------
headers_list() returns an empty array. Though apache_response_headers()
works
fine.
Using Sun Java System Web Server 7.0 Update 3 + PHP 5.2.8. The same
problem
is with older SJSWS 7.0 U1 + PHP 5.2.1.
./configure --with-nsapi=/opt/webserver7u3 --with-openssl=/usr --with-
enable-dbase --enable-exif --enable-ftp --with-gd --with-ttf
--with-t1lib=/usr --with-
enable-mbstring --with-libmbfl --with-mcrypt --with-mhash --with-ming
--with-
with-libxml-dir --with-freetype-dir --with-xsl
Reproduce code:
---------------
<?php
header('Content-Type: text/html');
var_dump(headers_list());
?>
Expected result:
----------------
array(4) {
[0]=>
string(23) "X-Powered-By: PHP/5.2.8"
[1]=>
string(23) "Content-type: text/html"
}
Actual result:
--------------
array(0) {
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47495&edit=1