Skip to content

Commit

Permalink
Fix #897
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Jul 23, 2013
1 parent c5962dc commit 767ab60
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ext/http/cookie.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,12 @@ PHP_METHOD(Phalcon_Http_Cookie, send){
php_setcookie(
Z_STRVAL_P(name), Z_STRLEN_P(name),
Z_STRVAL_P(encrypt_value), Z_STRLEN_P(encrypt_value),
Z_DVAL_P(expire),
Z_LVAL_P(expire),
Z_STRVAL_P(path), Z_STRLEN_P(path),
Z_STRVAL_P(domain), Z_STRLEN_P(domain),
Z_DVAL_P(secure),
Z_LVAL_P(secure),
1,
Z_DVAL_P(http_only) TSRMLS_CC
Z_LVAL_P(http_only) TSRMLS_CC
);

RETURN_THIS();
Expand Down Expand Up @@ -561,9 +561,9 @@ PHP_METHOD(Phalcon_Http_Cookie, delete){
time(NULL) - 691200,
Z_STRVAL_P(path), Z_STRLEN_P(path),
Z_STRVAL_P(domain), Z_STRLEN_P(domain),
Z_DVAL_P(secure),
Z_LVAL_P(secure),
1,
Z_DVAL_P(http_only) TSRMLS_CC
Z_LVAL_P(http_only) TSRMLS_CC
);

PHALCON_MM_RESTORE();
Expand Down

0 comments on commit 767ab60

Please sign in to comment.