]> granicus.if.org Git - php/commitdiff
Commiting Steph@php.net's patch to re-enable touch on Win32 machines
authorDan Kalowsky <kalowsky@php.net>
Tue, 30 Jul 2002 20:24:13 +0000 (20:24 +0000)
committerDan Kalowsky <kalowsky@php.net>
Tue, 30 Jul 2002 20:24:13 +0000 (20:24 +0000)
ext/standard/filestat.c

index 2218e59b43981c3caf5e290d70361f8d27ce465a..07684d53209fd258b724c8dc707653e24bd2eba5 100644 (file)
@@ -481,9 +481,7 @@ PHP_FUNCTION(touch)
        newtime = &newtimebuf;
 
        if (ac == 1 && zend_get_parameters_ex(1, &filename) != FAILURE) {
-#ifndef HAVE_UTIME_NULL
                newtime->modtime = newtime->actime = time(NULL);
-#endif
        } else if (ac == 2 && zend_get_parameters_ex(2, &filename, &filetime) != FAILURE) {
                convert_to_long_ex(filetime);
                newtime->actime = time(NULL);