summaryrefslogtreecommitdiff
path: root/ext/standard/php_filestat.h
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-04-26 23:46:51 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-04-26 23:46:51 +0000
commit6cc8919dc4129bd79592532d387344e58e8b1f00 (patch)
tree506fb65dd13d1e4835576af37d7c3a621d061b9a /ext/standard/php_filestat.h
parent9e9ecbb84f85cbb4f573007f14c3f10b62f4d75e (diff)
downloadphp-git-6cc8919dc4129bd79592532d387344e58e8b1f00.tar.gz
Fixed bug #16861.
touch sets wrong atime or mtime when they are not specified. touch silently failed when HAVE_UTIME is not defined. (This needs more consideration. Which platform does not support it?) # Derick, after HAVE_UTIME issue is resovled, this should be merged. # or we can just merge 1st problem for now.
Diffstat (limited to 'ext/standard/php_filestat.h')
-rw-r--r--ext/standard/php_filestat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/php_filestat.h b/ext/standard/php_filestat.h
index 095e4f9292..62cd4f57b9 100644
--- a/ext/standard/php_filestat.h
+++ b/ext/standard/php_filestat.h
@@ -48,7 +48,9 @@ PHP_FUNCTION(disk_free_space);
PHP_FUNCTION(chown);
PHP_FUNCTION(chgrp);
PHP_FUNCTION(chmod);
+#if HAVE_UTIME
PHP_FUNCTION(touch);
+#endif
PHP_FUNCTION(clearstatcache);
#define MAKE_LONG_ZVAL_INCREF(name, val)\