Re: PHP 4.0 Bug #2962: date function crashes php when value passed is out of range.

From: Date: Sun, 12 Dec 1999 21:54:21 +0000
Subject: Re: PHP 4.0 Bug #2962: date function crashes php when value passed is out of range.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-13608@lists.php.net to get a copy of this message
curt@zirzow.org wrote: > > From: curt@zirzow.org > Operating system: FreeBSD 3.2 > PHP version: 4.0 Beta 3 > PHP Bug Type: Reproduceable crash > Bug description: date function crashes php when value passed is out of range. > > If you remove the +1 or -1 in the following code everthing > works ok. Otherwise I get 'document contains no data'. > > <? > echo 'begin'; > // httpd exits on signal 8 (floating point exception) > echo date('l-d-Y h:m:s', 2147483647 + 1); > // or > echo date('l-d-Y h:m:s', -2147483648 - 1); > echo 'end'; > ?> I am unable to reproduce this using the latest CVS. Can you please try this on the CVS version and report back? Mine prints: Friday-13-1901 12:12:52 -- ev ---------------------------- Evan Klinger evan@php.net AIM evan715

« previous php.dev (#13608) next »