]> granicus.if.org Git - php/commitdiff
Fixed compilation errors.
authorAndrei Zmievski <andrei@php.net>
Tue, 18 Jul 2000 19:13:14 +0000 (19:13 +0000)
committerAndrei Zmievski <andrei@php.net>
Tue, 18 Jul 2000 19:13:14 +0000 (19:13 +0000)
ext/cybercash/cybercash.c
ext/cybercash/cybercash.h

index f1e43092a4162f9e8d954bc486728c6278a8677e..28b4f921ae14a2e23f00c440478ef2c8d91dcfdf 100644 (file)
  */
 
 #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;
        }
 
index c910e846f4004d1c6928401a4fb810b282f286e5..fc6de8761e412af8d2aebc30bd804d9dce0546e7 100644 (file)
 
 #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