Bug #79267 [NoF]: to much setcookie calls crashes the script
| From: | nikic@php.net | Date: | Mon, 24 Feb 2020 12:00:09 +0000 |
| Subject: | Bug #79267 [NoF]: to much setcookie calls crashes the script | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225690@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79267&edit=1
ID: 79267
Updated by: nikic@php.net
Reported by: williamdes at wdes dot fr
Summary: to much setcookie calls crashes the script
Status: No Feedback
Type: Bug
Package: Reproducible crash
Operating System: devilbox/php-fpm:7.3-mods
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Doesn't reproduce on built-in server at least.
Previous Comments:
------------------------------------------------------------------------
[2020-02-23 14:50:49] williamdes at wdes dot fr
I will not have time soon to test in debug mode
But I will do it someday :)
------------------------------------------------------------------------
[2020-02-23 04:22:08] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2020-02-13 00:45:23] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2020-02-12 23:02:38] williamdes at wdes dot fr
Description:
------------
As I reported here https://github.com/phpmyadmin/phpmyadmin/issues/15709
To many calls to the setcookie will crash the process.
Reproduced on Docker devilbox/php-fpm:7.1-mods and also 7.2,7.3,8.0 php versions
I am not sure that the error is not due to something else than php.
Test script:
---------------
<?php
setcookie("goto","",1577363177,"/@phpmyadmin/a/","",false);
setcookie("back","",1577363177,"/@phpmyadmin/a/","",false);
for ($i=1; $i < 40; $i++) {
setcookie("pmaAuth-$i","",1577363177,"/@phpmyadmin/a/","",false);
}
Expected result:
----------------
See 200 success
Actual result:
--------------
502 bad gateway
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79267&edit=1