cvs: php4 /ext/standard datetime.c

From: Date: Sun, 29 Apr 2001 15:48:07 +0000
Subject: cvs: php4 /ext/standard datetime.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5363@lists.php.net to get a copy of this message
derick Sun Apr 29 08:48:07 2001 EDT Modified files: /php4/ext/standard datetime.c Log: - 'Fix' for bug #10145 Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.68 php4/ext/standard/datetime.c:1.69 --- php4/ext/standard/datetime.c:1.68 Sun Feb 25 22:07:17 2001 +++ php4/ext/standard/datetime.c Sun Apr 29 08:48:07 2001 @@ -19,7 +19,7 @@ */ -/* $Id: datetime.c,v 1.68 2001/02/26 06:07:17 andi Exp $ */ +/* $Id: datetime.c,v 1.69 2001/04/29 15:48:07 derick Exp $ */ #include "php.h" @@ -786,6 +786,8 @@ } 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);

« previous php.cvs (#5363) next »