Bug #75870 [NEW]: header() terminates execution when Content-Length is 0
| From: | km dot wrona at gmail dot com | Date: | Wed, 24 Jan 2018 18:03:31 +0000 |
| Subject: | Bug #75870 [NEW]: header() terminates execution when Content-Length is 0 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213693@lists.php.net to get a copy of this message | ||
From: km dot wrona at gmail dot com
Operating system: Alpine
PHP version: 7.1.13
Package: *General Issues
Bug Type: Bug
Bug description:header() terminates execution when Content-Length is 0
Description:
------------
header() terminates execution when content-length is 0
This happens on Alpine3.7 php 7.1.12, for some reason not available in
the list above.
It works fine on Ubuntu 16.04 php 7.1.13
Test script:
---------------
<?php
header('content-length: 0', false, null);
echo 'this is longer than 0';
exit;
Expected result:
----------------
this is longer than 0
Actual result:
--------------
NOTHING (BLANK)
--
Edit bug report at https://bugs.php.net/bug.php?id=75870&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75870&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75870&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75870&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75870&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75870&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75870&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75870&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75870&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75870&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75870&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75870&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75870&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75870&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75870&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75870&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75870&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75870&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75870&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75870&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75870&r=mysqlcfg