#include "php_globals.h"
#if DBASE
-#include "dbase.h"
-#include "../dbase/dbf.h"
+#include "php_dbase.h"
+#include "dbf.h"
#if defined(THREAD_SAFE)
DWORD DbaseTls;
static int numthreads=0;
#else
#define dbase_module_ptr NULL
#endif
+
+#define phpext_dbase_ptr dbase_module_ptr
+
#endif /* _DBASE_H */
#include <stdio.h>
#include "php.h"
-#include "internal_functions.h"
#include "php3_gettext.h"
#if HAVE_LIBINTL
#endif
extern php3_module_entry php3_gettext_module_entry;
-#define php3_gettext_module_ptr &php3_gettext_module_entry
+#define gettext_module_ptr &php3_gettext_module_entry
extern void php3_info_gettext(ZEND_MODULE_INFO_FUNC_ARGS);
extern void php3_textdomain(INTERNAL_FUNCTION_PARAMETERS);
extern void php3_bindtextdomain(INTERNAL_FUNCTION_PARAMETERS);
#else
-#define php3_gettext_module_ptr NULL
+#define gettext_module_ptr NULL
#endif /* HAVE_LIBINTL */
+#define phpext_gettext_ptr gettext_module_ptr
+
#endif /* _GETTEXT_H */
fi
done
if test "$MCRYPT_DIR" = ""; then
- AC_MSG_ERROR(Please install mcrypt.h and libmcrypt.a accordingly to the do
-cumentation - I cannot find mcrypt.h)
+ AC_MSG_ERROR(Please reinstall libmcrypt - I cannot find mcrypt.h)
fi
INCLUDES="$INCLUDES -I$MCRYPT_DIR/include"
EXTRA_LIBS="$EXTRA_LIBS -L$MCRYPT_DIR/lib -lmcrypt"
#include "php_mcrypt.h"
#include "fcntl.h"
-/* we should find a way to figure out whether RC6/IDEA are available */
#define NON_FREE
+#define MCRYPT2
#include "mcrypt.h"
function_entry mcrypt_functions[] = {
MCRYPT_ENTRY(TripleDES);
MCRYPT_ENTRY(ThreeWAY);
MCRYPT_ENTRY(GOST);
-#ifdef MCRYPT2
+#ifdef CRYPT
MCRYPT_ENTRY(CRYPT);
+#endif
+#ifdef DES_COMPAT
MCRYPT_ENTRY(DES_COMPAT);
#endif
MCRYPT_ENTRY(SAFER64);
MHASH_ENTRY(CRC32);
MHASH_ENTRY(MD5);
MHASH_ENTRY(SHA1);
+ MHASH_ENTRY(HAVAL);
+ MHASH_ENTRY(RIPEMD128);
+ MHASH_ENTRY(RIPEMD160);
+ MHASH_ENTRY(TIGER);
+ MHASH_ENTRY(SNEFRU);
+ MHASH_ENTRY(GOST);
return SUCCESS;
}
#endif
+#define phpext_sysvsem_ptr sysvsem_module_ptr
+
#endif /* _PHP3_SYSVSEM_H */
* sas: Works for me on Linux 2.0.36 and FreeBSD 3.0-current
*/
-#ifndef MSVC5
-#include "php_config.h"
-#endif
+#include "php.h"
#if HAVE_SYSVSEM
#include <sys/sem.h>
#include <errno.h>
-#include "php.h"
#include "php3_sysvsem.h"
#if !HAVE_SEMUN && defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ == 6
{NULL, NULL, NULL}
};
-php3_module_entry sysvsem_module_entry = {
+zend_module_entry sysvsem_module_entry = {
"System V semaphores", sysvsem_functions, php3_minit_sysvsem, NULL, NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES
};
#endif
+#define phpext_sysvshm_ptr sysvshm_module_ptr
+
#endif /* _PHP3_SYSVSHM_H */
* It may not compile or execute correctly on other systems.
*/
-#ifndef MSVC5
-#include "php_config.h"
-#endif
-
+#include "php.h"
#if HAVE_SYSVSHM
#include <errno.h>
-#include "php.h"
-#include "php3_var.h"
#include "php3_sysvshm.h"
#if HAVE_ZLIB
extern php3_module_entry php3_zlib_module_entry;
-#define php3_zlib_module_ptr &php3_zlib_module_entry
+#define zlib_module_ptr &php3_zlib_module_entry
extern int php3_minit_zlib(INIT_FUNC_ARGS);
extern int php3_mshutdown_zlib(SHUTDOWN_FUNC_ARGS);
extern void php3_gzfile(INTERNAL_FUNCTION_PARAMETERS);
#else
-#define php3_zlib_module_ptr NULL
+#define zlib_module_ptr NULL
#endif /* HAVE_ZLIB */
+#define phpext_zlib_ptr zlib_module_ptr
+
#endif /* _PHP3_ZLIB_H */