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