cvs: php4 /ext/mcrypt mcrypt.c
| From: | Sascha Schumann | Date: | Mon, 14 Aug 2000 19:26:09 +0000 |
| Subject: | cvs: php4 /ext/mcrypt mcrypt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1177@lists.php.net to get a copy of this message | ||
sas Mon Aug 14 12:26:09 2000 EDT
Modified files:
/php4/ext/mcrypt mcrypt.c
Log:
Restrict INI entries when compiling against libmcrypt 2.4.
Index: php4/ext/mcrypt/mcrypt.c
diff -u php4/ext/mcrypt/mcrypt.c:1.37 php4/ext/mcrypt/mcrypt.c:1.38
--- php4/ext/mcrypt/mcrypt.c:1.37 Sun Aug 13 04:53:04 2000
+++ php4/ext/mcrypt/mcrypt.c Mon Aug 14 12:26:09 2000
@@ -237,14 +237,16 @@
#define MCRYPT_ENTRY2_4(a) MCRYPT_ENTRY_NAMED(a, a)
#endif
+#if HAVE_LIBMCRYPT24
PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("mcrypt.algorithms_dir", NULL, PHP_INI_ALL, OnUpdateString,
algorithms_dir, zend_mcrypt_globals, mcrypt_globals)
STD_PHP_INI_ENTRY("mcrypt.modes_dir", NULL, PHP_INI_ALL, OnUpdateString, modes_dir,
zend_mcrypt_globals, mcrypt_globals)
PHP_INI_END()
+#endif
static PHP_MINIT_FUNCTION(mcrypt)
{
-#ifdef ZTS
+#if defined(ZTS) && defined(HAVE_LIBMCRYPT24)
ZEND_INIT_MODULE_GLOBALS(mcrypt, NULL, NULL);
mcrypt_module_entry.type = type;
#endif
@@ -329,8 +331,8 @@
MCRYPT_ENTRY2_2_4(MODE_NOFB, "nofb");
MCRYPT_ENTRY2_2_4(MODE_OFB, "ofb");
MCRYPT_ENTRY2_2_4(MODE_STREAM, "stream");
-#endif
REGISTER_INI_ENTRIES();
+#endif
return SUCCESS;
}