summaryrefslogtreecommitdiff
path: root/ext/mcrypt/mcrypt.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-04-25 22:22:13 +0000
committerSascha Schumann <sas@php.net>1999-04-25 22:22:13 +0000
commit1e54412bdc67ad7950dfdb7170339db98714c45b (patch)
tree16945f166d4ace2dc9eb96276e5e733da3c2887d /ext/mcrypt/mcrypt.c
parent8ffbed7d7e7c2d06cd9a841d15ca4f23cc81a473 (diff)
downloadphp-git-1e54412bdc67ad7950dfdb7170339db98714c45b.tar.gz
PHP3 compat stuff
Diffstat (limited to 'ext/mcrypt/mcrypt.c')
-rw-r--r--ext/mcrypt/mcrypt.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c
index 65f1693637..79bd4d75c9 100644
--- a/ext/mcrypt/mcrypt.c
+++ b/ext/mcrypt/mcrypt.c
@@ -31,6 +31,12 @@
#if HAVE_LIBMCRYPT
+#if PHP_API_VERSION < 19990421
+#define zend_module_entry php3_module_entry
+#include "modules.h"
+#include "internal_functions.h"
+#endif
+
#include "fcntl.h"
#include "php_mcrypt.h"
@@ -49,12 +55,12 @@ function_entry mcrypt_functions[] = {
{0},
};
-static int php3_minit_mcrypt(INIT_FUNC_ARGS);
+static int php_minit_mcrypt(INIT_FUNC_ARGS);
zend_module_entry mcrypt_module_entry = {
"mcrypt",
mcrypt_functions,
- php3_minit_mcrypt, NULL,
+ php_minit_mcrypt, NULL,
NULL, NULL,
NULL,
STANDARD_MODULE_PROPERTIES,
@@ -120,7 +126,7 @@ static mcrypt_global_struct mcryptg;
#define MCRYPT_ENTRY(a) REGISTER_LONG_CONSTANT("MCRYPT_" #a, a, 0)
-static int php3_minit_mcrypt(INIT_FUNC_ARGS)
+static int php_minit_mcrypt(INIT_FUNC_ARGS)
{
/* modes for mcrypt_??? routines */
REGISTER_LONG_CONSTANT("MCRYPT_ENCRYPT", 0, 0);