RE: [PHP-DEV] Bug in date()?

From: Date: Wed, 21 Feb 2001 21:35:57 +0000
Subject: RE: [PHP-DEV] Bug in date()?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-47177@lists.php.net to get a copy of this message
The code written like so is ok: <?php $datum = date("d.m.Y ")."<br>".date(" H:i:s"); echo $datum; ?> Something as simple as this will cause the segfault. <?php date("rH"); ?> Seems that anything placed _after_ "r", anything that will get turned into a date-time format causes a crash. Im using 4.0.4pl, this does not happen with the CVS snapshot I have 2001-02-15. Chris -----Original Message----- From: Martin Jansen [mailto:mj@php.net] Sent: Wednesday, February 21, 2001 2:09 PM To: PHP Development Mailing List Subject: [PHP-DEV] Bug in date()? Hi, this script seemingly causes PHP 4.0.4pl1 to crash: <?php $datum = date("d.m.Y <br> H:i:s"); echo $datum; ?> There has been a report on news:de.comp.lang.php about this, telling that PHP crashes on Linux and Win32 in CGI-Version. I've tested it here locally on Windows 2000 Professional with PHP as module and it also crashes. With PHP 3.0.16 it seems to work. Any clues? Is it because of the HTML code in the parameter for date()? Martin -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#47177) next »