summaryrefslogtreecommitdiff
path: root/ext/standard/head.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-07-08 16:17:04 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-07-08 16:17:04 +0000
commitbf020f87e10649af3c51a468f2044af0528e0048 (patch)
tree2f49f5f5f7dd4edd3d5ddefe3df6fd3dbcfe58ef /ext/standard/head.c
parent046635075bd0f1702bc24677c1f6e079322ce7fb (diff)
downloadphp-git-bf020f87e10649af3c51a468f2044af0528e0048.tar.gz
Missing bit of the previous patch.
Diffstat (limited to 'ext/standard/head.c')
-rw-r--r--ext/standard/head.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c
index c9bc00ef4b..d565ec1ac1 100644
--- a/ext/standard/head.c
+++ b/ext/standard/head.c
@@ -110,7 +110,7 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t
sprintf(cookie, "Set-Cookie: %s=%s", name, value ? encoded_value : "");
if (expires > 0) {
strcat(cookie, "; expires=");
- dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, t, 0);
+ dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s T")-1, expires, 0);
strcat(cookie, dt);
efree(dt);
}