Permalink
Browse files

New PHP 7.3 cookie API

  • Loading branch information...
derickr committed Jul 31, 2018
1 parent b22d506 commit 7d8319f814526c82d03b4e8099ce3b21daad7042
Showing with 4 additions and 0 deletions.
  1. +4 −0 xdebug_compat.c
View
@@ -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 *path_s = zend_string_init(path, path_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);
#endif
zend_string_release(name_s);
zend_string_release(value_s);
zend_string_release(path_s);

0 comments on commit 7d8319f

Please sign in to comment.