Index: php_date.c =================================================================== RCS file: /repository/php-src/ext/date/php_date.c,v retrieving revision 1.43.2.45.2.30 diff -u -u -p -r1.43.2.45.2.30 php_date.c --- php_date.c 10 Sep 2006 17:01:51 -0000 1.43.2.45.2.30 +++ php_date.c 23 Oct 2006 10:38:41 -0000 @@ -1134,6 +1134,10 @@ PHPAPI void php_mktime(INTERNAL_FUNCTION long ts, adjust_seconds = 0; int error; + if (!gmt &&ZEND_NUM_ARGS()==0) { + RETURN_LONG((long)time(NULL)); + } + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|lllllll", &hou, &min, &sec, &mon, &day, &yea, &dst) == FAILURE) { RETURN_FALSE; } @@ -1174,8 +1178,6 @@ PHPAPI void php_mktime(INTERNAL_FUNCTION case 1: now->h = hou; break; - default: - php_error_docref(NULL TSRMLS_CC, E_STRICT, "You should be using the time() function instead"); } /* Update the timestamp */ if (gmt) {