diff options
Diffstat (limited to 'ext/mcrypt/php_mcrypt.h')
-rw-r--r-- | ext/mcrypt/php_mcrypt.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/mcrypt/php_mcrypt.h b/ext/mcrypt/php_mcrypt.h index 2bbad4dc32..438564219e 100644 --- a/ext/mcrypt/php_mcrypt.h +++ b/ext/mcrypt/php_mcrypt.h @@ -1,6 +1,6 @@ /* +----------------------------------------------------------------------+ - | PHP Version 5 | + | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2016 The PHP Group | +----------------------------------------------------------------------+ @@ -30,6 +30,9 @@ extern zend_module_entry mcrypt_module_entry; #define mcrypt_module_ptr &mcrypt_module_entry +#include "php_version.h" +#define PHP_MCRYPT_VERSION PHP_VERSION + /* Functions for both old and new API */ PHP_FUNCTION(mcrypt_ecb); PHP_FUNCTION(mcrypt_cbc); @@ -80,11 +83,7 @@ ZEND_BEGIN_MODULE_GLOBALS(mcrypt) int fd[2]; // RANDOM = 0, URANDOM = 1 ZEND_END_MODULE_GLOBALS(mcrypt) -#ifdef ZTS -# define MCG(v) TSRMG(mcrypt_globals_id, zend_mcrypt_globals *, v) -#else -# define MCG(v) (mcrypt_globals.v) -#endif +#define MCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(mcrypt, v) #else #define mcrypt_module_ptr NULL |