1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00

Backward compatibility to 4.0.6 does not have "HAVE_PHP_SESSION" define

Renamed PHP_4_x_API to PHP_4_x
This commit is contained in:
Mark L. Woodward
2002-02-08 03:05:21 +00:00
parent 51ca3418ba
commit e8285d6bba
+7 -6
View File
@@ -53,11 +53,12 @@
/* this value in Zend/zend_modules.h, and set appropriately */
#if (ZEND_MODULE_API_NO == 20001222)
#define PHP_4_0_API
#define PHP_4_0
#define TSRMLS_CC
#define TSRMLS_FETCH()
#define HAVE_PHP_SESSION
#elif (ZEND_MODULE_API_NO >= 20010901)
#define PHP_4_1_API
#define PHP_4_1
#endif
/*
@@ -121,7 +122,7 @@ function_entry msession_functions[] = {
};
zend_module_entry msession_module_entry = {
#ifdef PHP_4_1_API
#ifdef PHP_4_1
STANDARD_MODULE_HEADER,
#endif
"msession",
@@ -131,7 +132,7 @@ zend_module_entry msession_module_entry = {
PHP_RINIT(msession),
PHP_RSHUTDOWN(msession),
PHP_MINFO(msession),
#ifdef PHP_4_1_API
#ifdef PHP_4_1
NO_VERSION_YET,
#endif
STANDARD_MODULE_PROPERTIES
@@ -747,10 +748,10 @@ PHP_FUNCTION(msession_set_array)
HashPosition pos;
zval **entry;
char *key;
#ifdef PHP_4_1_API
#ifdef PHP_4_1
uint keylen;
#endif
#ifdef PHP_4_0_API
#ifdef PHP_4_0
ulong keylen;
#endif
ulong numndx;