Skip to content

Commit 7992d3c

Browse files
committed
Merge pull request #65 from Feld0/64_Update_constructors_for_PHP_7
#64: Update constructor syntax for PHP 7.
2 parents a4a50f1 + ad7d79c commit 7992d3c

11 files changed

+11
-11
lines changed

getid3/extension.cache.dbm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class getID3_cached_dbm extends getID3
7474
{
7575

7676
// public: constructor - see top of this file for cache type and cache_options
77-
public function getID3_cached_dbm($cache_type, $dbm_filename, $lock_filename) {
77+
public function __construct($cache_type, $dbm_filename, $lock_filename) {
7878

7979
// Check for dba extension
8080
if (!extension_loaded('dba')) {

getid3/extension.cache.mysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class getID3_cached_mysql extends getID3
8080

8181

8282
// public: constructor - see top of this file for cache type and cache_options
83-
public function getID3_cached_mysql($host, $database, $username, $password, $table='getid3_cache') {
83+
public function __construct($host, $database, $username, $password, $table='getid3_cache') {
8484

8585
// Check for mysql support
8686
if (!function_exists('mysql_pconnect')) {

getid3/module.tag.xmp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public function read_XMP_array_from_text($xmltext)
399399
*
400400
* @param string - Name of the image file to access and extract XMP information from.
401401
*/
402-
public function Image_XMP($sFilename)
402+
public function __construct($sFilename)
403403
{
404404
$this->_sFilename = $sFilename;
405405

getid3/write.apetag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class getid3_write_apetag
2626
public $warnings = array(); // any non-critical errors will be stored here
2727
public $errors = array(); // any critical errors will be stored here
2828

29-
public function getid3_write_apetag() {
29+
public function __construct() {
3030
return true;
3131
}
3232

getid3/write.id3v1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class getid3_write_id3v1
2424
public $warnings = array(); // any non-critical errors will be stored here
2525
public $errors = array(); // any critical errors will be stored here
2626

27-
public function getid3_write_id3v1() {
27+
public function __construct() {
2828
return true;
2929
}
3030

getid3/write.id3v2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class getid3_write_id3v2
3030
public $warnings = array(); // any non-critical errors will be stored here
3131
public $errors = array(); // any critical errors will be stored here
3232

33-
public function getid3_write_id3v2() {
33+
public function __construct() {
3434
return true;
3535
}
3636

getid3/write.lyrics3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class getid3_write_lyrics3
2323
public $warnings = array(); // any non-critical errors will be stored here
2424
public $errors = array(); // any critical errors will be stored here
2525

26-
public function getid3_write_lyrics3() {
26+
public function __construct() {
2727
return true;
2828
}
2929

getid3/write.metaflac.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class getid3_write_metaflac
2323
public $warnings = array(); // any non-critical errors will be stored here
2424
public $errors = array(); // any critical errors will be stored here
2525

26-
public function getid3_write_metaflac() {
26+
public function __construct() {
2727
return true;
2828
}
2929

getid3/write.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class getid3_writetags
6464
// private
6565
private $ThisFileInfo; // analysis of file before writing
6666

67-
public function getid3_writetags() {
67+
public function __construct() {
6868
return true;
6969
}
7070

getid3/write.real.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class getid3_write_real
2323
public $errors = array(); // any critical errors will be stored here
2424
public $paddedlength = 512; // minimum length of CONT tag in bytes
2525

26-
public function getid3_write_real() {
26+
public function __construct() {
2727
return true;
2828
}
2929

0 commit comments

Comments
 (0)