summaryrefslogtreecommitdiff
path: root/ext/standard/dir.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-10-20 18:09:44 +0000
committerAndi Gutmans <andi@php.net>1999-10-20 18:09:44 +0000
commit5212b2fe5b4e8675bd1472fac8f77627a5b07426 (patch)
tree732b5821d5eb6868bfaede7fab657089c2ccd2d8 /ext/standard/dir.c
parent33ebd5238741a224d67e75f6f7e47ba9c2341ffd (diff)
downloadphp-git-5212b2fe5b4e8675bd1472fac8f77627a5b07426.tar.gz
- Make CVS compile on Win32.
- Rename php3_COM.h -> php_COM.h
Diffstat (limited to 'ext/standard/dir.c')
-rw-r--r--ext/standard/dir.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/standard/dir.c b/ext/standard/dir.c
index 3345d255c6..1a1b6d1bdc 100644
--- a/ext/standard/dir.c
+++ b/ext/standard/dir.c
@@ -243,7 +243,7 @@ PHP_FUNCTION(chdir)
PHP_FUNCTION(getcwd)
{
char path[MAXPATHLEN];
- char *ret;
+ char *ret=NULL;
if (ARG_COUNT(ht) != 0) {
WRONG_PARAM_COUNT;
@@ -253,8 +253,11 @@ PHP_FUNCTION(getcwd)
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) {