Skip to content

Commit

Permalink
New PHP 7.3 cookie API
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Sep 20, 2018
1 parent b22d506 commit 7d8319f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xdebug_compat.c
Expand Up @@ -194,7 +194,11 @@ void xdebug_setcookie(const char *name, int name_len, char *value, int value_len
zend_string *value_s = zend_string_init(value, value_len, 0); zend_string *value_s = zend_string_init(value, value_len, 0);
zend_string *path_s = zend_string_init(path, path_len, 0); zend_string *path_s = zend_string_init(path, path_len, 0);
zend_string *domain_s = zend_string_init(domain, domain_len, 0); zend_string *domain_s = zend_string_init(domain, domain_len, 0);
#if PHP_VERSION_ID >= 70300
php_setcookie(name_s, value_s, expires, path_s, domain_s, secure, httponly, NULL, url_encode);
#else
php_setcookie(name_s, value_s, expires, path_s, domain_s, secure, url_encode, httponly); php_setcookie(name_s, value_s, expires, path_s, domain_s, secure, url_encode, httponly);
#endif
zend_string_release(name_s); zend_string_release(name_s);
zend_string_release(value_s); zend_string_release(value_s);
zend_string_release(path_s); zend_string_release(path_s);
Expand Down

0 comments on commit 7d8319f

Please sign in to comment.