@@ -2007,13 +2007,13 @@ PHP_FUNCTION(session_get_cookie_params)
2007
2007
add_assoc_long (return_value , "lifetime" , PS (cookie_lifetime ));
2008
2008
// TODO Use add_assoc_str() but figure out why it emits a
2009
2009
// Zend/zend_types.h:1222: zend_gc_delref: Assertion `(zval_gc_flags((p)->u.type_info) & ((1<<7)|(1<<8))) != (1<<7)' failed.
2010
- add_assoc_string (return_value , "path" , ZSTR_VAL (PS (cookie_path )));
2011
- add_assoc_string (return_value , "domain" , ZSTR_VAL (PS (cookie_domain )));
2010
+ add_assoc_stringl (return_value , "path" , ZSTR_VAL ( PS ( cookie_path )), ZSTR_LEN (PS (cookie_path )));
2011
+ add_assoc_stringl (return_value , "domain" , ZSTR_VAL ( PS ( cookie_domain )), ZSTR_LEN (PS (cookie_domain )));
2012
2012
add_assoc_bool (return_value , "secure" , PS (cookie_secure ));
2013
2013
add_assoc_bool (return_value , "httponly" , PS (cookie_httponly ));
2014
2014
// TODO Use add_assoc_str() but figure out why it emits a
2015
2015
// Zend/zend_types.h:1222: zend_gc_delref: Assertion `(zval_gc_flags((p)->u.type_info) & ((1<<7)|(1<<8))) != (1<<7)' failed.
2016
- add_assoc_string (return_value , "samesite" , ZSTR_VAL (PS (cookie_samesite )));
2016
+ add_assoc_stringl (return_value , "samesite" , ZSTR_VAL ( PS ( cookie_samesite )), ZSTR_LEN (PS (cookie_samesite )));
2017
2017
}
2018
2018
/* }}} */
2019
2019
0 commit comments