Skip to content

ext/session refactoring: INI settings #16419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Use known length
  • Loading branch information
Girgias authored and jorgsowa committed Jan 10, 2025
commit aaa67ee90e3e2bafd1451c21639dccd6bf6bef07
6 changes: 3 additions & 3 deletions ext/session/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -2007,13 +2007,13 @@ PHP_FUNCTION(session_get_cookie_params)
add_assoc_long(return_value, "lifetime", PS(cookie_lifetime));
// TODO Use add_assoc_str() but figure out why it emits a
// Zend/zend_types.h:1222: zend_gc_delref: Assertion `(zval_gc_flags((p)->u.type_info) & ((1<<7)|(1<<8))) != (1<<7)' failed.
add_assoc_string(return_value, "path", ZSTR_VAL(PS(cookie_path)));
add_assoc_string(return_value, "domain", ZSTR_VAL(PS(cookie_domain)));
add_assoc_stringl(return_value, "path", ZSTR_VAL(PS(cookie_path)), ZSTR_LEN(PS(cookie_path)));
add_assoc_stringl(return_value, "domain", ZSTR_VAL(PS(cookie_domain)), ZSTR_LEN(PS(cookie_domain)));
add_assoc_bool(return_value, "secure", PS(cookie_secure));
add_assoc_bool(return_value, "httponly", PS(cookie_httponly));
// TODO Use add_assoc_str() but figure out why it emits a
// Zend/zend_types.h:1222: zend_gc_delref: Assertion `(zval_gc_flags((p)->u.type_info) & ((1<<7)|(1<<8))) != (1<<7)' failed.
add_assoc_string(return_value, "samesite", ZSTR_VAL(PS(cookie_samesite)));
add_assoc_stringl(return_value, "samesite", ZSTR_VAL(PS(cookie_samesite)), ZSTR_LEN(PS(cookie_samesite)));
}
/* }}} */

Expand Down