summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2006-11-03 15:06:51 +0000
committerHannes Magnusson <bjori@php.net>2006-11-03 15:06:51 +0000
commit91c604d584e858bba4fadc2ad0d53ccb3e206191 (patch)
tree44beddbb21686f59b72fec29bd9e269f1dcbe9dd /ext
parent0c7e63a07e566145ac51ab5957bf9f030168e550 (diff)
downloadphp-git-91c604d584e858bba4fadc2ad0d53ccb3e206191.tar.gz
MFH: Add "wrong param" warning to strtotime()
Diffstat (limited to 'ext')
-rw-r--r--ext/date/php_date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 687ca122ca..2743f9949c 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -1083,7 +1083,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", &times, &time_len) != FAILURE) {
+ } else if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &times, &time_len, &preset_ts) != FAILURE) {
/* We have no initial timestamp */
now = timelib_time_ctor();
now->tz_info = tzi;