[kronolith] windows mktime warning

Thomas Spellman thomas at thosmos.com
Fri Mar 7 11:49:37 PST 2003


I only got this error when I had all output buffering turned off, and I
set an event with no end date (rather than one that only lasts until
2005.)  Apparently, if you don't set an end-date, "$recur_enddate_year =
9999" (line 746) in Kronolith_Event::readForm() puts 9999 in the year
slot of mktime() at "$this->setRecurEndTimestamp(mktime(1, 1, 1,
$recur_enddate_month, $recur_enddate_day, $recur_enddate_year));" (line
755-758) This is where the error happens.

Warning: mktime() [function.mktime]: Windows does not support negative
values for this function in
C:\Inetpub\wwwroot\horde\kronolith\lib\Event.php on line 758

Warning: Cannot modify header information - headers already sent by
(output started at C:\Inetpub\wwwroot\horde\kronolith\lib\Event.php:758)
in C:\Inetpub\wwwroot\horde\kronolith\addeventaction.php on line 26


this is on windows xp, apache2 & apache1, php4.3.1, fresh cvs.



> -----Original Message-----
> From: kronolith-bounces at lists.horde.org
> [mailto:kronolith-bounces at lists.horde.org] On Behalf Of Chuck 
> Hagenbuch
> Sent: Thursday, March 06, 2003 12:57 PM
> To: kronolith at lists.horde.org
> Subject: Re: [kronolith] windows mktime warning
> 
> 
> Quoting Thomas Spellman <thomas at thosmos.com>:
> 
> > Warning: mktime() [function.mktime]: Windows does not
> support negative
> > values for this function in
> > C:\Inetpub\wwwroot\horde\kronolith\lib\Event.php on line 749
> 
> I can't reproduce this. What exactly do you mean by "no end time"?
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck at horde.org>
> I know there's fish out there, but where g-d only knows.
> 
> --
> Kronolith mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe at lists.horde.org
> 



More information about the kronolith mailing list