CVS update: php3/functions

From: Date: Wed, 16 Jun 1999 07:58:21 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-7011@lists.php.net to get a copy of this message
Date: Wednesday June 16, 1999 @ 3:58 Author: sas Update of /repository/php3/functions In directory php:/tmp/cvs-serv11727/functions Modified Files: mcrypt.c Log Message: fix constants Index: php3/functions/mcrypt.c diff -u php3/functions/mcrypt.c:1.8 php3/functions/mcrypt.c:1.9 --- php3/functions/mcrypt.c:1.8 Tue May 18 09:23:15 1999 +++ php3/functions/mcrypt.c Wed Jun 16 03:58:21 1999 @@ -119,18 +119,18 @@ #define MCRYPT_IV_WRONG_SIZE "The IV paramater must be as long as the blocksize" #define MCRYPT_FAILED "mcrypt initialization failed" -#define MCRYPT_ENTRY(a) REGISTER_LONG_CONSTANT("MCRYPT_" #a, a, 0) +#define MCRYPT_ENTRY(a) REGISTER_LONG_CONSTANT("MCRYPT_" #a, a, CONST_PERSISTENT) static int php_minit_mcrypt(INIT_FUNC_ARGS) { /* modes for mcrypt_??? routines */ - REGISTER_LONG_CONSTANT("MCRYPT_ENCRYPT", 0, 0); - REGISTER_LONG_CONSTANT("MCRYPT_DECRYPT", 1, 0); + REGISTER_LONG_CONSTANT("MCRYPT_ENCRYPT", 0, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("MCRYPT_DECRYPT", 1, CONST_PERSISTENT); /* sources for mcrypt_create_iv */ - REGISTER_LONG_CONSTANT("MCRYPT_DEV_RANDOM", 0, 0); - REGISTER_LONG_CONSTANT("MCRYPT_DEV_URANDOM", 1, 0); - REGISTER_LONG_CONSTANT("MCRYPT_RAND", 2, 0); + REGISTER_LONG_CONSTANT("MCRYPT_DEV_RANDOM", 0, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("MCRYPT_DEV_URANDOM", 1, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("MCRYPT_RAND", 2, CONST_PERSISTENT); /* ciphers */ MCRYPT_ENTRY(BLOWFISH);

« previous php.dev (#7011) next »