@@ -1864,13 +1864,13 @@ PHP_FUNCTION(session_get_cookie_params)
1864
1864
add_assoc_long (return_value , "lifetime" , PS (cookie_lifetime ));
1865
1865
// TODO Use add_assoc_str() but figure out why it emits a
1866
1866
// Zend/zend_types.h:1222: zend_gc_delref: Assertion `(zval_gc_flags((p)->u.type_info) & ((1<<7)|(1<<8))) != (1<<7)' failed.
1867
- add_assoc_string (return_value , "path" , ZSTR_VAL (PS (cookie_path )));
1868
- add_assoc_string (return_value , "domain" , ZSTR_VAL (PS (cookie_domain )));
1867
+ add_assoc_stringl (return_value , "path" , ZSTR_VAL ( PS ( cookie_path )), ZSTR_LEN (PS (cookie_path )));
1868
+ add_assoc_stringl (return_value , "domain" , ZSTR_VAL ( PS ( cookie_domain )), ZSTR_LEN (PS (cookie_domain )));
1869
1869
add_assoc_bool (return_value , "secure" , PS (cookie_secure ));
1870
1870
add_assoc_bool (return_value , "httponly" , PS (cookie_httponly ));
1871
1871
// TODO Use add_assoc_str() but figure out why it emits a
1872
1872
// Zend/zend_types.h:1222: zend_gc_delref: Assertion `(zval_gc_flags((p)->u.type_info) & ((1<<7)|(1<<8))) != (1<<7)' failed.
1873
- add_assoc_string (return_value , "samesite" , ZSTR_VAL (PS (cookie_samesite )));
1873
+ add_assoc_stringl (return_value , "samesite" , ZSTR_VAL ( PS ( cookie_samesite )), ZSTR_LEN (PS (cookie_samesite )));
1874
1874
}
1875
1875
/* }}} */
1876
1876
0 commit comments