Bug #79267 [NEW]: to much setcookie calls crashes the script

From: Date: Wed, 12 Feb 2020 23:02:38 +0000
Subject: Bug #79267 [NEW]: to much setcookie calls crashes the script
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225542@lists.php.net to get a copy of this message
From: williamdes at wdes dot fr Operating system: devilbox/php-fpm:7.3-mods PHP version: Irrelevant Package: Reproducible crash Bug Type: Bug Bug description:to much setcookie calls crashes the script 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 bug report at https://bugs.php.net/bug.php?id=79267&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79267&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79267&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79267&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79267&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79267&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79267&r=support Expected behavior: https://bugs.php.net/fix.php?id=79267&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79267&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79267&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79267&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79267&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79267&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79267&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79267&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79267&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79267&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79267&r=mysqlcfg

« previous php.bugs (#225542) next »