From: phpbugs at thequod dot de Operating system: Ubuntu Linux PHP version: 5CVS-2007-02-25 (CVS) PHP Bug Type: Reproducible crash Bug description: setcookie() with huge lifetime causes segfault or "zend_mm_heap corrupted"
Description: ------------ We use a quite huge cookie lifetime in our application (b2evolution) which causes a segmentation fault with current CVS. When I rename the cookie name and value, it becomes "zend_mm_heap corrupted" instead. Reproduce code: --------------- # "zend_mm_heap corrupted": setcookie( 'foo', 'bar', 1487806696, '/blogs/', '.b2cvs18.local' ); # "Segmentation fault": setcookie( 'cookieb2evosession', '33_9Bm6MWngjfF745MSCgoqREt3umW7ttC6', 1487806696, '/blogs/', '.b2cvs18.local' ); Expected result: ---------------- Nothing. Actual result: -------------- zend_mm_heap corrupted or Segmentation fault -- Edit bug report at http://bugs.php.net/?id=40632&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40632&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40632&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40632&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40632&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40632&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40632&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40632&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40632&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40632&r=support Expected behavior: http://bugs.php.net/fix.php?id=40632&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40632&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40632&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40632&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40632&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40632&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40632&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40632&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40632&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40632&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40632&r=mysqlcfg