cvs: php4 /ext/standard datetime.c

From: Date: Wed, 14 Jun 2000 22:11:10 +0000
Subject: cvs: php4 /ext/standard datetime.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-280@lists.php.net to get a copy of this message
hholzgra Wed Jun 14 15:11:10 2000 EDT Modified files: /php4/ext/standard datetime.c Log: return FALSE from strftime on negative timestamp values they do not make sense anyway and seem to crash win2k Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.45 php4/ext/standard/datetime.c:1.46 --- php4/ext/standard/datetime.c:1.45 Wed Jun 14 13:31:31 2000 +++ php4/ext/standard/datetime.c Wed Jun 14 15:11:10 2000 @@ -19,7 +19,7 @@ */ -/* $Id: datetime.c,v 1.45 2000/06/14 20:31:31 rasmus Exp $ */ +/* $Id: datetime.c,v 1.46 2000/06/14 22:11:10 hholzgra Exp $ */ #include "php.h" @@ -662,6 +662,9 @@ convert_to_string_ex(format_arg); if ((*format_arg)->value.str.len==0) { + RETURN_FALSE; + } + if (timestamp < 0) { RETURN_FALSE; } format = (*format_arg)->value.str.val;

« previous php.cvs (#280) next »