Re: Bugs in Cache Class

From: Date: Fri, 02 Mar 2001 14:47:41 +0000
Subject: Re: Bugs in Cache Class
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1547@lists.php.net to get a copy of this message
Hi > Yeah, I knew about all them and fixed them and others a few minutes ago. just saw it. But Output.php seems not to be fixed, but > BTW, did you already ask for a CVS Account? yep, i did, and rasmus gave me already one :) are there any rules i have to check for cvs commits? anyway, will commit my fixed Output.php in a few minutes, if you're not faster .. > Sorry, can't reach that server. Guess, I know what you mean. This very > similar feature is available: the function was actually function getExpiresAbsolute($expires) { if ($expires == 0) return 0; if (substr($expires, 0, 1) == '+') { return(time() + $expires); } else { $year = substr($expires, 0, 4); $month = substr($expires, 4, 2); $day = substr($expires, 6, 2); $hour = substr($expires, 8, 2); $minute = substr($expires, 10, 2); $second = substr($expires, 12, 2); return mktime($hour, $minute, $second, $month, $day, $year); } } so you can write either "+10" for expires in 10 seconds. or a human readable format like "20010302202020". but you are changing at the moment some things, so i'll have a look again after the weekend :) chregu -- nam...christian stocker adr...bremgartnerstr. 66, ch-8003 zurich pho...+41 1 451 6021 www...http://phant.ch/chregu mob...+41 76 561 8860 ema...chregu@phant.ch off...+41 1 240 2304 icq...4196137

« previous php.pear (#1547) next »