Bug #12293: setcookie() called with only one arg causes crash

From: Date: Fri, 20 Jul 2001 23:26:00 +0000
Subject: Bug #12293: setcookie() called with only one arg causes crash
Groups: php.dev 
Request: Send a blank email to php-dev+get-60455@lists.php.net to get a copy of this message
From: michael@auctionwatch.com Operating system: Linux PHP version: 4.0.6 PHP Bug Type: Reproducible crash Bug description: setcookie() called with only one arg causes crash setcookie() when called with exactly one argument causes PHP to crash; I've included a stack trace below. The offending statement is setcookie ("feedbackSent"); We can work around the problem by adding a NULL second argument, e.g. setcookie ("feedbackSent",""); #0 0x40282cfc in php_if_setcookie () from /usr/lib/apache/1.3/libphp4.so #1 0x40206e57 in execute () from /usr/lib/apache/1.3/libphp4.so #2 0x40215d6e in zend_execute_scripts () from /usr/lib/apache/1.3/libphp4.so #3 0x402287e4 in php_execute_script () from /usr/lib/apache/1.3/libphp4.so #4 0x40224c3f in apache_php_module_main () from /usr/lib/apache/1.3/libphp4.so #5 0x4022566e in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so #6 0x402256aa in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so #7 0x8054204 in ap_invoke_handler () #8 0x806306c in ap_some_auth_required () #9 0x80630c8 in ap_process_request () -- Edit bug report at: http://bugs.php.net/?id=12293&edit=1

« previous php.dev (#60455) next »