]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/ID3/getid3.php
WordPress 4.7.2-scripts
[autoinstalls/wordpress.git] / wp-includes / ID3 / getid3.php
index 394e25e4e3d2fd081a4671b4df6d58d7304f14ae..714fb027680cc8b08fac29e29d11f02f25a9e822 100644 (file)
@@ -28,7 +28,7 @@ $temp_dir = ini_get('upload_tmp_dir');
 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();
 }
@@ -109,7 +109,7 @@ class getID3
        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;
@@ -249,7 +249,7 @@ class getID3
                        $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)) {
@@ -1793,4 +1793,4 @@ abstract class getid3_handler {
 class getid3_exception extends Exception
 {
        public $message;
-}
\ No newline at end of file
+}