]> granicus.if.org Git - php/commitdiff
- 'Fix' for bug #10145
authorDerick Rethans <derick@php.net>
Sun, 29 Apr 2001 15:48:07 +0000 (15:48 +0000)
committerDerick Rethans <derick@php.net>
Sun, 29 Apr 2001 15:48:07 +0000 (15:48 +0000)
ext/standard/datetime.c

index 762d2f9ceb852627c081735dc2a2f582f542e709..8fb839ca865c2c7734f9fe13752b5a1ce9a8e502 100644 (file)
@@ -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);