From: Roy R. <rs...@ae...> - 2002-08-10 18:53:05
|
On Sat, 10 Aug 2002, rickmarx wrote: > I installed the program, but it gives the following error: > > setcookie() expects parameter 3 to be long, string given (in includes/cookie.inc.php on line 8, 9, 10, 11 e 12) > > > What he can be? I believe this is a bug that props up between PHP 4.0.X and PHP 4.1.X. It looks like originally setcookie accepted string-formatted expiration dates but sometime in the near past it stopped doing so. I'm a little surprised nobody else has encountered it. I figure one of three possibilities exists: A) Everyone's running an old version of PHP; B) Everyone just fixed it for themselves; C) I misunderstood the nature of this bug Either way, the CVS repository is now fixed, so you can take out that file from the repository. If you don't know how to do that, here's what I did: The original two lines of cookie.inc.php: $time = time()+$g_cookietimeout; $date = date("l, d-M-y H:i:s", ($time)); I changed that to: $date = time()+$g_cookietimeout; // $date = date("l, d-M-y H:i:s", ($time)); -roy |