Patched getID3() for PHP 7.

This commit is contained in:
Peter Deltchev 2015-12-20 03:33:22 -08:00
parent 476e6b4800
commit 91a4a2d660
11 changed files with 11 additions and 11 deletions

View file

@ -74,7 +74,7 @@ class getID3_cached_dbm extends getID3
{ {
// public: constructor - see top of this file for cache type and cache_options // public: constructor - see top of this file for cache type and cache_options
public function getID3_cached_dbm($cache_type, $dbm_filename, $lock_filename) { public function __construct($cache_type, $dbm_filename, $lock_filename) {
// Check for dba extension // Check for dba extension
if (!extension_loaded('dba')) { if (!extension_loaded('dba')) {

View file

@ -80,7 +80,7 @@ class getID3_cached_mysql extends getID3
// public: constructor - see top of this file for cache type and cache_options // public: constructor - see top of this file for cache type and cache_options
public function getID3_cached_mysql($host, $database, $username, $password, $table='getid3_cache') { public function __construct($host, $database, $username, $password, $table='getid3_cache') {
// Check for mysql support // Check for mysql support
if (!function_exists('mysql_pconnect')) { if (!function_exists('mysql_pconnect')) {

View file

@ -399,7 +399,7 @@ class Image_XMP
* *
* @param string - Name of the image file to access and extract XMP information from. * @param string - Name of the image file to access and extract XMP information from.
*/ */
public function Image_XMP($sFilename) public function __construct($sFilename)
{ {
$this->_sFilename = $sFilename; $this->_sFilename = $sFilename;

View file

@ -26,7 +26,7 @@ class getid3_write_apetag
public $warnings = array(); // any non-critical errors will be stored here public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here public $errors = array(); // any critical errors will be stored here
public function getid3_write_apetag() { public function __construct() {
return true; return true;
} }

View file

@ -24,7 +24,7 @@ class getid3_write_id3v1
public $warnings = array(); // any non-critical errors will be stored here public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here public $errors = array(); // any critical errors will be stored here
public function getid3_write_id3v1() { public function __construct() {
return true; return true;
} }

View file

@ -30,7 +30,7 @@ class getid3_write_id3v2
public $warnings = array(); // any non-critical errors will be stored here public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here public $errors = array(); // any critical errors will be stored here
public function getid3_write_id3v2() { public function __construct() {
return true; return true;
} }

View file

@ -23,7 +23,7 @@ class getid3_write_lyrics3
public $warnings = array(); // any non-critical errors will be stored here public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here public $errors = array(); // any critical errors will be stored here
public function getid3_write_lyrics3() { public function __construct() {
return true; return true;
} }

View file

@ -23,7 +23,7 @@ class getid3_write_metaflac
public $warnings = array(); // any non-critical errors will be stored here public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here public $errors = array(); // any critical errors will be stored here
public function getid3_write_metaflac() { public function __construct() {
return true; return true;
} }

View file

@ -64,7 +64,7 @@ class getid3_writetags
// private // private
private $ThisFileInfo; // analysis of file before writing private $ThisFileInfo; // analysis of file before writing
public function getid3_writetags() { public function __construct() {
return true; return true;
} }

View file

@ -23,7 +23,7 @@ class getid3_write_real
public $errors = array(); // any critical errors will be stored here public $errors = array(); // any critical errors will be stored here
public $paddedlength = 512; // minimum length of CONT tag in bytes public $paddedlength = 512; // minimum length of CONT tag in bytes
public function getid3_write_real() { public function __construct() {
return true; return true;
} }

View file

@ -23,7 +23,7 @@ class getid3_write_vorbiscomment
public $warnings = array(); // any non-critical errors will be stored here public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here public $errors = array(); // any critical errors will be stored here
public function getid3_write_vorbiscomment() { public function __construct() {
return true; return true;
} }