Edit report at https://bugs.php.net/bug.php?id=77155&edit=1
ID: 77155
Comment by: spam2 at rhsoft dot net
Reported by: marnick dot leau at gmail dot com
Summary: Location header no longer coexists with status 201
Status: Feedback
Type: Bug
Package: Other web server
Operating System: Linux
PHP Version: 7.2.12
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
honestly that's why phpinfo() shows SAPI and so on to provide basic informations in the
initial report - keep in mind people need to duplicate issues and so in doubt need an as much as
possible environment to debug
Previous Comments:
------------------------------------------------------------------------
[2018-11-16 15:39:39] marnick dot leau at gmail dot com
cgi-fcgi
------------------------------------------------------------------------
[2018-11-15 16:45:20] cmb@php.net
> I use php in lighttpd, is fastcgi the answer you need?
Not quite. What does php_sapi_name() return (likely either
cgi-fcgi or fpm-fcgi).
------------------------------------------------------------------------
[2018-11-15 16:31:14] marnick dot leau at gmail dot com
I use php in lighttpd, is fastcgi the answer you need?
Your example is 303, have you tried 201?
I suppose it could be a lighttpd issue too, but lighttpd's changelog doesn't mention
anything like this either, and php has a history of being bossy about Location+status, so I started
here...
------------------------------------------------------------------------
[2018-11-15 13:43:29] cmb@php.net
Related To: Bug #76961
------------------------------------------------------------------------
[2018-11-15 13:19:10] cmb@php.net
header('Location: http://example.com/', true,
303);
works for me with latest PHP-7.2 and the built-in webserver. Which
SAPI do you use?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=77155
--
Edit this bug report at https://bugs.php.net/bug.php?id=77155&edit=1