-#ifndef _PHP3_COM_H
-#define _PHP3_COM_H
+#ifndef _PHP_COM_H
+#define _PHP_COM_H
#if WIN32|WINNT
PHP_FUNCTION(com_propget);
PHP_FUNCTION(com_propput);
-extern php3_module_entry COM_module_entry;
+extern zend_module_entry COM_module_entry;
#define COM_module_ptr &COM_module_entry
#else
#define phpext_COM_ptr COM_module_ptr
-#endif /* _PHP3_COM_H */
+#endif /* _PHP_COM_H */
-#ifndef _PHP3_COM_H
-#define _PHP3_COM_H
+#ifndef _PHP_COM_H
+#define _PHP_COM_H
#if WIN32|WINNT
PHP_FUNCTION(com_propget);
PHP_FUNCTION(com_propput);
-extern php3_module_entry COM_module_entry;
+extern zend_module_entry COM_module_entry;
#define COM_module_ptr &COM_module_entry
#else
#define phpext_COM_ptr COM_module_ptr
-#endif /* _PHP3_COM_H */
+#endif /* _PHP_COM_H */
PHP_FUNCTION(getcwd)
{
char path[MAXPATHLEN];
- char *ret;
+ char *ret=NULL;
if (ARG_COUNT(ht) != 0) {
WRONG_PARAM_COUNT;
ret = getcwd(path,MAXPATHLEN-1);
#elif HAVE_GETWD
ret = getwd(path);
-#elif
-#warning no proper getcwd support for your site
+/*
+ * #warning is not ANSI C
+ * #else
+ * #warning no proper getcwd support for your site
+ */
#endif
if (ret) {
/* Define if you have the usleep function. */
#undef HAVE_USLEEP
+
+#define HAVE_GETCWD 1
+
#define NEED_ISBLANK 1
/* ----------------------------------------------------------------
The following may be changed and played with right now, but
# PROP Ignore_Export_Lib 0\r
# PROP Target_Dir ""\r
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c\r
-# ADD CPP /nologo /MT /W3 /GX /Od /I "." /I "regex" /I "..\bindlib_w32" /I "libzend" /I "tsrm" /D "NDEBUG" /D "MSVC5" /D "_CONSOLE" /D "ZTS" /D "WIN32" /D "_MBCS" /D ZEND_DEBUG=0 /Fr /FD /c\r
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I "regex" /I "..\bindlib_w32" /I "libzend" /I "tsrm" /D "NDEBUG" /D "MSVC5" /D "_CONSOLE" /D "ZTS" /D "WIN32" /D "_MBCS" /D ZEND_DEBUG=0 /Fr /FD /c\r
# SUBTRACT CPP /YX /Yc /Yu\r
# ADD BASE RSC /l 0x409 /d "NDEBUG"\r
# ADD RSC /l 0x409 /d "NDEBUG"\r
# PROP Ignore_Export_Lib 0\r
# PROP Target_Dir ""\r
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c\r
-# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "." /I "regex" /I "..\bindlib_w32" /I "libzend" /I "tsrm" /D "DEBUG" /D "_DEBUG" /D "MSVC5" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "ZTS" /D ZEND_DEBUG=1 /FR /FD /c\r
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "." /I "regex" /I "..\bindlib_w32" /I "libzend" /I "tsrm" /D "DEBUG" /D "_DEBUG" /D "MSVC5" /D "_CONSOLE" /D "WIN32" /D "_MBCS" /D "ZTS" /D ZEND_DEBUG=1 /FR /FD /c\r
# SUBTRACT CPP /YX\r
# ADD BASE RSC /l 0x409 /d "_DEBUG"\r
# ADD RSC /l 0x409 /i "c:\include" /d "_DEBUG"\r