cvs: php4 /ext/msession msession.c

From: Date: Mon, 11 Feb 2002 18:32:04 +0000
Subject: cvs: php4 /ext/msession msession.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9349@lists.php.net to get a copy of this message
mlwmohawk Mon Feb 11 13:32:04 2002 EDT Modified files: /php4/ext/msession msession.c Log: 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!) Index: php4/ext/msession/msession.c diff -u php4/ext/msession/msession.c:1.25 php4/ext/msession/msession.c:1.26 --- php4/ext/msession/msession.c:1.25 Thu Feb 7 22:05:20 2002 +++ php4/ext/msession/msession.c Mon Feb 11 13:31:59 2002 @@ -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.

« previous php.cvs (#9349) next »