80 if (!is_string(
$name)) {
84 if (array_key_exists(
$name, $this->_directives)) {
103 if (!is_string(
$name)) {
107 if (array_key_exists(
$name, $this->_options)) {
123 if (array_key_exists(
$name, $this->_options)) {
124 return $this->_options[
$name];
127 if (array_key_exists(
$name, $this->_directives)) {
128 return $this->_directives[
$name];
145 if ($specificLifetime ===
false) {
146 return $this->_directives[
'lifetime'];
148 return $specificLifetime;
175 foreach (array($_ENV, $_SERVER) as $tab) {
176 foreach (array(
'TMPDIR',
'TEMP',
'TMP',
'windir',
'SystemRoot') as $key) {
177 if (isset($tab[$key]) && is_string($tab[$key])) {
178 if (($key ==
'windir') or ($key ==
'SystemRoot')) {
179 $dir = realpath($tab[$key] .
'\\temp');
181 $dir = realpath($tab[$key]);
189 $upload =
ini_get(
'upload_tmp_dir');
191 $dir = realpath($upload);
197 $dir = sys_get_temp_dir();
203 $tempFile = tempnam(md5(uniqid(rand(), TRUE)),
'');
205 $dir = realpath(dirname($tempFile));
246 if (!isset($this->_directives[
'logging']) || !$this->_directives[
'logging']) {
250 if (isset($this->_directives[
'logger'])) {
251 if ($this->_directives[
'logger'] instanceof
Zend_Log) {
258 #require_once 'Zend/Log.php'; 259 #require_once 'Zend/Log/Writer/Stream.php'; 260 #require_once 'Zend/Log/Filter/Priority.php'; 263 $this->_directives[
'logger'] =
$logger;
275 if (!$this->_directives[
'logging']) {
279 if (!isset($this->_directives[
'logger'])) {
282 $logger = $this->_directives[
'logger'];
__construct(array $options=array())
_log($message, $priority=4)
setDirectives($directives)
isAutomaticCleaningAvailable()
static throwException($msg, Exception $e=null)
getLifetime($specificLifetime)
if(!isset($_GET['name'])) $name