From 41da044a019c6e9475b46e564532449c5d758f18 Mon Sep 17 00:00:00 2001 From: Vladimir Kolesnikov Date: Sat, 21 Dec 2013 01:34:54 +0200 Subject: [PATCH] phalcon_session_write_close() --- ext/kernel/session.c | 5 +++++ ext/kernel/session.h | 1 + 2 files changed, 6 insertions(+) diff --git a/ext/kernel/session.c b/ext/kernel/session.c index fa90b9546d1..9a200aa1e23 100644 --- a/ext/kernel/session.c +++ b/ext/kernel/session.c @@ -87,3 +87,8 @@ void phalcon_set_session_id(zval *sid TSRMLS_DC) phalcon_call_func_params_w(NULL, SL("session_id"), 1, params TSRMLS_CC); #endif } + +void phalcon_session_write_close(TSRMLS_D) +{ + phalcon_call_func_params_w(NULL, SL("session_write_close"), 0, NULL TSRMLS_CC); +} diff --git a/ext/kernel/session.h b/ext/kernel/session.h index 2f539e6e0d9..7c6ceadbed2 100644 --- a/ext/kernel/session.h +++ b/ext/kernel/session.h @@ -24,5 +24,6 @@ void phalcon_session_start(TSRMLS_D); void phalcon_session_destroy(TSRMLS_D); void phalcon_get_session_id(zval *return_value TSRMLS_DC); void phalcon_set_session_id(zval *sid TSRMLS_DC); +void phalcon_session_write_close(TSRMLS_D); #endif /* KERNEL_SESSION_H */