]> granicus.if.org Git - php/commitdiff
PHP_SESSION_API not always defined.
authorMark L. Woodward <mlwmohawk@php.net>
Mon, 1 Apr 2002 01:38:53 +0000 (01:38 +0000)
committerMark L. Woodward <mlwmohawk@php.net>
Mon, 1 Apr 2002 01:38:53 +0000 (01:38 +0000)
ext/msession/msession.c

index fb2e3d80e15b46d386487191831ffeef385b9ff4..a37de45b75592ac2740bc4bca218d38b2571c6aa 100644 (file)
@@ -23,8 +23,6 @@
 #include "ext/standard/info.h"
 #include "ext/session/php_session.h"
 
-#define ERR_DEBUG
-
 /* Macros and such */
 #ifndef TRUE
 #define TRUE 1
 #define IFCONNECT_ENDVAL(V)    } else { php_error(E_WARNING, s_szNoInit); return V; }
 #define IFCONNECT_END          } else { php_error(E_WARNING, s_szNoInit); RETURN_FALSE; }
 
+#ifdef PHP_SESSION_API
 #if (PHP_SESSION_API >= 20020330)
 #define HAVE_PHP_SESSION_CREATESID
 #endif
+#endif
        
 /* This sets the PHP API version used in the file. */
 /* If this module does not compile on the version of PHP you are using, look for */