From: leha at inkin dot ru Operating system: Linux 2.6.26 PHP version: 5.2.8 PHP Bug Type: iPlanet related Bug description: headers_list returns an empty array
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 bug report at http://bugs.php.net/?id=47495&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47495&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47495&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47495&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47495&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47495&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47495&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47495&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47495&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47495&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47495&r=support Expected behavior: http://bugs.php.net/fix.php?id=47495&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47495&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47495&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47495&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47495&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47495&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47495&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47495&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47495&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47495&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47495&r=mysqlcfg