#include "php_ini.h"
#include "php_globals.h"
+#ifdef PHP_WIN32
+ #include "win32/winutil.h"
+ #define DL_ERROR php_win_err()
+#else
+ #define DL_ERROR dlerror()
+#endif
+
#include <jni.h>
#include <stdio.h>
dl_handle = DL_LOAD(javalib);
if (!dl_handle) {
- php_error(E_ERROR, "Unable to load Java Library %s", javalib);
+ php_error(E_ERROR, "Unable to load Java Library %s, error: %s",
+ javalib, DL_ERROR);
return -1;
}
}
\r
SOURCE=.\java.c\r
# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\..\..\win32\winutil.c\r
+# End Source File\r
# End Group\r
# Begin Group "Header Files"\r
\r
#include "php_ini.h"
#include "php_globals.h"
+#ifdef PHP_WIN32
+ #include "win32/winutil.h"
+ #define DL_ERROR php_win_err()
+#else
+ #define DL_ERROR dlerror()
+#endif
+
#include <jni.h>
#include <stdio.h>
dl_handle = DL_LOAD(javalib);
if (!dl_handle) {
- php_error(E_ERROR, "Unable to load Java Library %s", javalib);
+ php_error(E_ERROR, "Unable to load Java Library %s, error: %s",
+ javalib, DL_ERROR);
return -1;
}
}
\r
SOURCE=.\java.c\r
# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\..\..\win32\winutil.c\r
+# End Source File\r
# End Group\r
# Begin Group "Header Files"\r
\r
\r
SOURCE=.\servlet.c\r
# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=.\..\..\win32\winutil.c\r
+# End Source File\r
# End Group\r
# Begin Group "Header Files"\r
\r