]> granicus.if.org Git - php/commitdiff
Backward compatibility to 4.0.6 does not have "HAVE_PHP_SESSION" define
authorMark L. Woodward <mlwmohawk@php.net>
Fri, 8 Feb 2002 03:05:21 +0000 (03:05 +0000)
committerMark L. Woodward <mlwmohawk@php.net>
Fri, 8 Feb 2002 03:05:21 +0000 (03:05 +0000)
Renamed PHP_4_x_API to PHP_4_x

ext/msession/msession.c

index daa3859995effd4ab82e2132e45fabbaf0978f26..fe37414c6978dfbda948911cdbeff32084769cc6 100644 (file)
 /* 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;