bjori           Sat Oct  7 22:31:53 2006 UTC

  Modified files:              
    /php-src/ext/date   php_date.c 
  Log:
  Add "wrong param count"/"expecting parameter .. to be.." warning to 
strtotime()
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.121&r2=1.122&diff_format=u
Index: php-src/ext/date/php_date.c
diff -u php-src/ext/date/php_date.c:1.121 php-src/ext/date/php_date.c:1.122
--- php-src/ext/date/php_date.c:1.121   Tue Oct  3 14:55:42 2006
+++ php-src/ext/date/php_date.c Sat Oct  7 22:31:52 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_date.c,v 1.121 2006/10/03 14:55:42 bjori Exp $ */
+/* $Id: php_date.c,v 1.122 2006/10/07 22:31:52 bjori Exp $ */
 
 #include "php.h"
 #include "php_streams.h"
@@ -1204,7 +1204,7 @@
                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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to