Bug #12677 Updated: setcookie() with one argument segfaults apache

From: Date: Thu, 09 Aug 2001 19:33:58 +0000
Subject: Bug #12677 Updated: setcookie() with one argument segfaults apache
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-62732@lists.php.net to get a copy of this message
ID: 12677 Updated by: rasmus Reported By: harik@chaos.ao.net Old Status: Open Status: Closed Bug Type: Reproducible crash Operating System: debian linux PHP Version: 4.0.6 New Comment: Fixed in CVS a while ago Previous Comments: ------------------------------------------------------------------------ [2001-08-09 15:29:00] harik@chaos.ao.net The following simple script: <?php setcookie("mycookie"); echo "Cookie set!"; ?> crashes the apache process running it. (Segfault in error_log) if I change it to setcookie("mycookie", ""); it works correctly. Yes, it's a stupid thing to do. I found it when I upgraded to 4.0.6 (I believe from 4.0.5, but not sure. I wasn't the one who did the upgrade) and a braindead script failed. I'm using the debian php_4.0.6-4 package if this isn't reproducable with a stock build. --Dan ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12677&edit=1

« previous php.dev (#62732) next »