This allows touch() to work with just the one parameter again even on
systems that support HAVE_UTIME_NULL

I can't find any bug reports on this (?) but think it may not have
worked since mid-May.

Tested on win98, win2k only.  sorrybut.
--- old_filestat.c      2002-07-28 23:35:50.000000000 +0000
+++ filestat.c  2002-07-30 17:16:48.000000000 +0000
@@ -481,9 +481,7 @@
        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);

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to