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