From: Andrei Zmievski Date: Tue, 18 Jul 2000 19:13:14 +0000 (+0000) Subject: Fixed compilation errors. X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7edad11a74546e35c35b1ceb1668dc57cff71351;p=php Fixed compilation errors. --- diff --git a/ext/cybercash/cybercash.c b/ext/cybercash/cybercash.c index f1e43092a4..28b4f921ae 100644 --- a/ext/cybercash/cybercash.c +++ b/ext/cybercash/cybercash.c @@ -29,9 +29,10 @@ */ #include "php.h" +#include "ext/standard/info.h" +#include "cybercash.h" #if HAVE_MCK -#include "cybercash.h" #include "mckcrypt.h" #include "base64.h" @@ -137,14 +138,14 @@ PHP_FUNCTION(cybercash_decr) errcode = mck_decr(Z_STRVAL_PP(wmk), Z_STRVAL_PP(sk), Z_STRLEN_PP(inbuff), - Z_STRLEN_PP(inbuff), + Z_STRVAL_PP(inbuff), outAlloc, outbuff, &outLth, macbuff); if (array_init(return_value) == FAILURE) { - php_error(E_WARNING, "Could not initialize Return value from cybercash_decr") + php_error(E_WARNING, "Could not initialize Return value from cybercash_decr"); RETURN_FALSE; } diff --git a/ext/cybercash/cybercash.h b/ext/cybercash/cybercash.h index c910e846f4..fc6de8761e 100644 --- a/ext/cybercash/cybercash.h +++ b/ext/cybercash/cybercash.h @@ -33,12 +33,6 @@ #if HAVE_MCK -#if PHP_API_VERSION < 19990421 -#define zend_module_entry cybercash_module_entry -#include "modules.h" -#include "internal_functions.h" -#endif - extern zend_module_entry cybercash_module_entry; #define cybercash_module_ptr &cybercash_module_entry