From: Hannes Magnusson Date: Sat, 7 Oct 2006 22:31:52 +0000 (+0000) Subject: Add "wrong param count"/"expecting parameter .. to be.." warning to strtotime() X-Git-Tag: RELEASE_1_0_0RC1~1359 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=523180a5a762229fb2794ea9e4651d76bfbe1331;p=php Add "wrong param count"/"expecting parameter .. to be.." warning to strtotime() --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 8437b80508..cbe0d491cd 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1204,7 +1204,7 @@ PHP_FUNCTION(strtotime) timelib_unixtime2local(now, t->sse); timelib_time_dtor(t); efree(initial_ts); - } else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s", ×, &time_len) != FAILURE) { + } else if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", ×, &time_len, &preset_ts) != FAILURE) { /* We have no initial timestamp */ now = timelib_time_ctor(); now->tz_info = tzi;