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:[EMAIL PROTECTED]]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]