|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-19 10:04 UTC] martin at tack dot se
[2002-12-19 10:12 UTC] edink@php.net
[2002-12-19 11:07 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 18:00:02 2025 UTC |
The following code makes apache (?) crash. <? $timestamp = 0; $m = date("m",$timestamp); //$m = 01 $y = date("Y",$timestamp); //$m = 1970 $datestamp = mktime(0,0,0, $m, 0, $y); ?> I use Apache 2.0.43 under Windows2k SP3. I have tested against PHP 4.2.3, 4.3.0RC3 and a couple of 4.3.x-dev snapshots from snaps.php.net (from 16-18 dec 2002) Script doesnt crash if either $m or $y is replaced with a 0 in the mktime() call. I found this problem after investigating why a certain script crashed, the reason was some data that i've expected to be in the database actually wasn't. In this case i'd expect to get a false back in $datestamp, or some kind of error message. I've searched the bug database but havent found any similar bug reports. On Linux 2.4.14, PHP 4.2.3, Apache 1.3.27 i can NOT reproduce this problem.