cvs: php4 /pear/Cache Function_Cache.php

From: Date: Sat, 20 Jan 2001 17:40:06 +0000
Subject: cvs: php4 /pear/Cache Function_Cache.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3715@lists.php.net to get a copy of this message
sbergmann Sat Jan 20 09:40:06 2001 EDT Modified files: /php4/pear/Cache Function_Cache.php Log: Fixed two small glitches. Note: The Shared Memory version of Function_Cache does not work correctly at the moment, but I'm on it. Index: php4/pear/Cache/Function_Cache.php diff -u php4/pear/Cache/Function_Cache.php:1.2 php4/pear/Cache/Function_Cache.php:1.3 --- php4/pear/Cache/Function_Cache.php:1.2 Tue Jan 9 17:01:53 2001 +++ php4/pear/Cache/Function_Cache.php Sat Jan 20 09:40:05 2001 @@ -3,7 +3,7 @@ // +----------------------------------------------------------------------+ // | PHP version 4.0 | // +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2001 The PHP Group | +// | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | @@ -16,7 +16,7 @@ // | Authors: Sebastian Bergmann <sb@sebastian-bergmann.de> | // +----------------------------------------------------------------------+ // -// $Id: Function_Cache.php,v 1.2 2001/01/10 01:01:53 ssb Exp $ +// $Id: Function_Cache.php,v 1.3 2001/01/20 17:40:05 sbergmann Exp $ // /** @@ -58,7 +58,7 @@ * * @author Sebastian Bergmann <sb@sebastian-bergmann.de> * @module Function_Cache -* @version $Revision: 1.2 $ +* @version $Revision: 1.3 $ * @access public */ @@ -192,7 +192,7 @@ function cache_set_lifetime( $func_name, $lifetime ) { // check $lifetime argument - if( is_number( $lifetime ) ) + if( is_integer( $lifetime ) ) { // store $lifetime $GLOBALS[ "_cache" ][ "lifetime" ][ $func_name ] = $lifetime; @@ -262,7 +262,7 @@ $shm = shm_attach( CACHE_SHM_KEY, CACHE_SHM_SIZE ); // read cache contents - $cache = shm_get_var( $shm, CACHE_SHM_VAR ); + $cache = @shm_get_var( $shm, CACHE_SHM_VAR ); // release shared memory sem_release( $sem );

« previous php.cvs (#3715) next »