From: Cliff Woolley Date: Fri, 17 May 2002 07:10:19 +0000 (+0000) Subject: Only the last cookie was getting set. (You can have X-Git-Tag: php-4.3.0dev-ZendEngine2~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34d471d22e1bd1ae957c40280303ee65d6c4ce0e;p=php Only the last cookie was getting set. (You can have more than one Set-Cookie: header, as indicated by http://wp.netscape.com/newsref/std/cookie_spec.html.) PR: 16626 Submitted by: regina@hitel.net --- diff --git a/ext/standard/head.c b/ext/standard/head.c index 3663cae898..e69905725a 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -121,7 +121,7 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t strcat(cookie, "; secure"); } - return sapi_add_header(cookie, strlen(cookie), 0); + return sapi_add_header_ex(cookie, strlen(cookie), 0, 0 TSRMLS_CC); }