# One more critical problem in 5.4

- Thread: https://externals.io/message/57573
- Original archive: https://news-web.php.net/php.internals/57573
- Started by Lior Kaplan on 2012-01-30T15:02:16+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #57573 — Lior Kaplan — 2012-01-30T15:02:16+00:00

URL: https://externals.io/message/57573#57573

> 
> 
> > […]
> 
> Fix committed.

The fix does work (thanks), but introduces another problem with scripts
without output in FastCGI. The problem is that the headers aren't sent
when there's no output from the script. If the script does produce an
output then the headers are sent.

should be reproducible with this simple script:

<?php
header("Location: http://www.google.com");

Kaplan
Zend Technologies Ltd.

---

## #57584 — Stas Malyshev — 2012-01-30T22:50:43+00:00

URL: https://externals.io/message/57573#57584 · In reply to: #57573

Hi!

> should be reproducible with this simple script:
>
> <?php
> header("Location: http://www.google.com");
>

Could you check with a recent checkout? Looks like the last patch from 
Michael fixed that (at least it works for me).
-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227
