From: Derick Rethans Date: Sun, 29 Apr 2001 15:48:07 +0000 (+0000) Subject: - 'Fix' for bug #10145 X-Git-Tag: php-4.0.6RC1~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8ad2e842d2777372a576ade4bc051060a0f5292;p=php - 'Fix' for bug #10145 --- diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 762d2f9ceb..8fb839ca86 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -786,6 +786,8 @@ PHP_FUNCTION(strtotime) } convert_to_string_ex(z_time); + if (Z_STRLEN_PP(z_time) == 0) + php_error (E_NOTICE, "strtotime() called with empty time parameter"); if (argc == 2) { convert_to_long_ex(z_now); now = Z_LVAL_PP(z_now);