| 1 |
/* |
|---|
| 2 |
+----------------------------------------------------------------------+ |
|---|
| 3 |
| eAccelerator project | |
|---|
| 4 |
+----------------------------------------------------------------------+ |
|---|
| 5 |
| Copyright (c) 2004 - 2005 eAccelerator | |
|---|
| 6 |
| http://eaccelerator.net | |
|---|
| 7 |
+----------------------------------------------------------------------+ |
|---|
| 8 |
| This program is free software; you can redistribute it and/or | |
|---|
| 9 |
| modify it under the terms of the GNU General Public License | |
|---|
| 10 |
| as published by the Free Software Foundation; either version 2 | |
|---|
| 11 |
| of the License, or (at your option) any later version. | |
|---|
| 12 |
| | |
|---|
| 13 |
| This program is distributed in the hope that it will be useful, | |
|---|
| 14 |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | |
|---|
| 15 |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
|---|
| 16 |
| GNU General Public License for more details. | |
|---|
| 17 |
| | |
|---|
| 18 |
| You should have received a copy of the GNU General Public License | |
|---|
| 19 |
| along with this program; if not, write to the Free Software | |
|---|
| 20 |
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, | |
|---|
| 21 |
| MA 02111-1307, USA. | |
|---|
| 22 |
| | |
|---|
| 23 |
| A copy is availble at http://www.gnu.org/copyleft/gpl.txt | |
|---|
| 24 |
+----------------------------------------------------------------------+ |
|---|
| 25 |
| Author(s): Dmitry Stogov <dstogov@users.sourceforge.net> | |
|---|
| 26 |
+----------------------------------------------------------------------+ |
|---|
| 27 |
$Id$ |
|---|
| 28 |
*/ |
|---|
| 29 |
|
|---|
| 30 |
#ifndef INCLUDED_SESSION_H |
|---|
| 31 |
#define INCLUDED_SESSION_H |
|---|
| 32 |
|
|---|
| 33 |
#include "php_ini.h" |
|---|
| 34 |
|
|---|
| 35 |
/* check if php is compiled with session support */ |
|---|
| 36 |
#undef HAVE_PHP_SESSIONS_SUPPORT |
|---|
| 37 |
#if defined(HAVE_EXT_SESSION_PHP_SESSION_H) |
|---|
| 38 |
# include "ext/session/php_session.h" |
|---|
| 39 |
# if defined(PHP_SESSION_API) && PHP_SESSION_API >= 20020306 |
|---|
| 40 |
# define HAVE_PHP_SESSIONS_SUPPORT |
|---|
| 41 |
# endif |
|---|
| 42 |
#else // no session support in php, undef eA session support |
|---|
| 43 |
# undef WITH_EACCELERATOR_SESSIONS |
|---|
| 44 |
#endif |
|---|
| 45 |
|
|---|
| 46 |
#ifdef WITH_EACCELERATOR_SESSIONS |
|---|
| 47 |
|
|---|
| 48 |
int eaccelerator_set_session_handlers(); |
|---|
| 49 |
int eaccelerator_session_registered(); |
|---|
| 50 |
void eaccelerator_register_session(); |
|---|
| 51 |
|
|---|
| 52 |
#ifdef HAVE_PHP_SESSIONS_SUPPORT |
|---|
| 53 |
PHP_FUNCTION(_eaccelerator_session_open); |
|---|
| 54 |
PHP_FUNCTION(_eaccelerator_session_close); |
|---|
| 55 |
PHP_FUNCTION(_eaccelerator_session_read); |
|---|
| 56 |
PHP_FUNCTION(_eaccelerator_session_write); |
|---|
| 57 |
PHP_FUNCTION(_eaccelerator_session_destroy); |
|---|
| 58 |
PHP_FUNCTION(_eaccelerator_session_gc); |
|---|
| 59 |
#endif |
|---|
| 60 |
PHP_FUNCTION(eaccelerator_set_session_handlers); |
|---|
| 61 |
PHP_INI_MH(eaccelerator_OnUpdateSessionCachePlace); |
|---|
| 62 |
|
|---|
| 63 |
#endif |
|---|
| 64 |
|
|---|
| 65 |
#endif /* INCLUDED_SESSION_H */ |
|---|