Skip to content

Commit

Permalink
Make Phalcon\Session\AdapterInterface compatible with SessionHandlerI…
Browse files Browse the repository at this point in the history
…nterface

Fix #1108
  • Loading branch information
sjinks committed Jan 12, 2014
1 parent 4e525dd commit 7ae2827
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/session/adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static const zend_function_entry phalcon_session_adapter_method_entry[] = {
PHP_ME(Phalcon_Session_Adapter, remove, arginfo_phalcon_session_adapterinterface_remove, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Session_Adapter, getId, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Session_Adapter, isStarted, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Session_Adapter, destroy, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Session_Adapter, destroy, arginfo_phalcon_session_adapterinterface_destroy, ZEND_ACC_PUBLIC)
PHP_FE_END
};

Expand Down
2 changes: 1 addition & 1 deletion ext/session/adapterinterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static const zend_function_entry phalcon_session_adapterinterface_method_entry[]
PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, remove, arginfo_phalcon_session_adapterinterface_remove)
PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, getId, NULL)
PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, isStarted, NULL)
PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, NULL)
PHP_ABSTRACT_ME(Phalcon_Session_AdapterInterface, destroy, arginfo_phalcon_session_adapterinterface_destroy)
PHP_FE_END
};

Expand Down
4 changes: 4 additions & 0 deletions ext/session/adapterinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_setoptions, 0, 0
ZEND_ARG_INFO(0, options)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_destroy, 0, 0, 0)
ZEND_ARG_INFO(0, session_id)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_session_adapterinterface_get, 0, 0, 1)
ZEND_ARG_INFO(0, index)
ZEND_ARG_INFO(0, defaultValue)
Expand Down

0 comments on commit 7ae2827

Please sign in to comment.