From 3edf26b5091c94d7ee45548cf5779793d53cafc7 Mon Sep 17 00:00:00 2001 From: "Mark L. Woodward" Date: Mon, 11 Feb 2002 18:32:00 +0000 Subject: [PATCH] Added one more tweak for 4.0.x compatibility. Used "#warning" to inform users of a hard dependency. (If #warning is unaccptable, let me know!) --- ext/msession/msession.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/msession/msession.c b/ext/msession/msession.c index fe37414c69..b0972b645f 100644 --- a/ext/msession/msession.c +++ b/ext/msession/msession.c @@ -46,24 +46,24 @@ /* Uncomment to get debugging messages */ /* #define ERR_DEBUG */ -/* Zend version number is out of whack in 4.0.6 */ -/* Numerical <> do not seem to work, older released version is greater than current */ /* 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 */ /* this value in Zend/zend_modules.h, and set appropriately */ -#if (ZEND_MODULE_API_NO == 20001222) +#if (ZEND_MODULE_API_NO <= 20001222) #define PHP_4_0 #define TSRMLS_CC #define TSRMLS_FETCH() +/* Comment out this line if you wish to have msession without php sessions */ #define HAVE_PHP_SESSION +#warning Backward compatible msession extension requires PHP sessions. If PHP compiles and links, you can ignore this warning. #elif (ZEND_MODULE_API_NO >= 20010901) #define PHP_4_1 #endif /* * Please do not remove backward compatibility from this module. - * this same source must also work with 4.0 versions of PHP. + * this same source must also work with the 4.0.6 version of PHP. * * Module Variable naming hints: * All global scope variables begin with "g_" for global. -- 2.50.1