if ($temp_dir && (!is_dir($temp_dir) || !is_readable($temp_dir))) {
$temp_dir = '';
}
-if (!$temp_dir) {
+if (!$temp_dir && function_exists('sys_get_temp_dir')) { // sys_get_temp_dir added in PHP v5.2.1
// sys_get_temp_dir() may give inaccessible temp dir, e.g. with open_basedir on virtual hosts
$temp_dir = sys_get_temp_dir();
}
protected $startup_error = '';
protected $startup_warning = '';
- const VERSION = '1.9.8-20140511';
+ const VERSION = '1.9.9-20141121';
const FREAD_BUFFER_SIZE = 32768;
const ATTACHMENTS_NONE = false;
$this->filename = $filename;
$this->info = array();
$this->info['GETID3_VERSION'] = $this->version();
- $this->info['php_memory_limit'] = $this->memory_limit;
+ $this->info['php_memory_limit'] = (($this->memory_limit > 0) ? $this->memory_limit : false);
// remote files not supported
if (preg_match('/^(ht|f)tp:\/\//', $filename)) {
class getid3_exception extends Exception
{
public $message;
-}
\ No newline at end of file
+}