]> granicus.if.org Git - php/commitdiff
Added one more tweak for 4.0.x compatibility.
authorMark L. Woodward <mlwmohawk@php.net>
Mon, 11 Feb 2002 18:32:00 +0000 (18:32 +0000)
committerMark L. Woodward <mlwmohawk@php.net>
Mon, 11 Feb 2002 18:32:00 +0000 (18:32 +0000)
Used "#warning" to inform users of a hard dependency.
(If #warning is unaccptable, let me know!)

ext/msession/msession.c

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