*/
#include "php.h"
+#include "ext/standard/info.h"
+#include "cybercash.h"
#if HAVE_MCK
-#include "cybercash.h"
#include "mckcrypt.h"
#include "base64.h"
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;
}
#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