Re: [PHP-PEAR] Bugs in Cache Class

[email protected] (Christian Stocker) Fri, 2 Mar 2001 15:47:41 +0100 (CET)
Newsgroups php.pear
Organization Nomad Online Agents
Message-ID <[email protected]>
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      [email protected]
off...+41  1 240 2304      icq...4196137