Giter Site home page Giter Site logo

GetID3 and Php 7 about getid3 HOT 6 CLOSED

jamesheinrich avatar jamesheinrich commented on June 29, 2024
GetID3 and Php 7

from getid3.

Comments (6)

JamesHeinrich avatar JamesHeinrich commented on June 29, 2024 1

The latest version is 1.9.13

The extension.cache.mysql.php extension is included for older systems needing mysql
The equivalent extension.cache.mysqli.php version is for newer systems needing mysqli

from getid3.

Daniel-KM avatar Daniel-KM commented on June 29, 2024

Hi,

I checked for list() and there is no issue with it. I don't check for other changes yet.

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management

from getid3.

JamesHeinrich avatar JamesHeinrich commented on June 29, 2024

I don't believe any of the usage of list() in getID3 is affected by the changes in PHP 7, but if you find any specific problems please reopen this issue.

from getid3.

EventideGlow avatar EventideGlow commented on June 29, 2024

I get this exception (and similar ones for the other write.* classes) in a project using getID3 when running it on PHP 7:

Methods with the same name as their class will not be constructors in a future version of PHP; getid3_writetags has a deprecated constructor.

I'll try updating these constructors to __construct and will submit a pull request if things still work.

from getid3.

rejhgadellaabsl avatar rejhgadellaabsl commented on June 29, 2024

Not sure if the cache extension is used a lot but it's still using the old mysql_** methods which were deprecated in PHP5.x and removed in 7.

I ran php7cc against the latest version (1.9.12) and this is what I got:

File: D:\Working\www\intranet-prod\www\sites\all\libraries\getid3\getid3\extension.cache.mysql.php
> Line 91: Removed function "mysql_pconnect" called
    mysql_pconnect($host, $username, $password);
> Line 97: Removed function "mysql_select_db" called
    mysql_select_db($database, $this->connection);
> Line 110: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($this->table);
> Line 111: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string(\getID3::VERSION);
> Line 115: Removed function "mysql_query" called
    mysql_query($SQLquery, $this->connection);
> Line 116: Removed function "mysql_fetch_array" called
    mysql_fetch_array($this->cursor);
> Line 130: Removed function "mysql_query" called
    mysql_query('DELETE FROM `' . mysql_real_escape_string($this->table) . '`', $this->connection);
> Line 130: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($this->table);
> Line 131: Removed function "mysql_query" called
    mysql_query('INSERT INTO `' . mysql_real_escape_string($this->table) . '` VALUES (\'' . \getID3::VERSION . '\', -1, -1, -1, \'' . \getID3::VERSION . '\')', $this->connection);
> Line 131: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($this->table);
> Line 147: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($this->table);
> Line 148: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($filename);
> Line 149: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($filesize);
> Line 150: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($filetime);
> Line 151: Removed function "mysql_query" called
    mysql_query($SQLquery, $this->connection);
> Line 152: Removed function "mysql_num_rows" called
    mysql_num_rows($this->cursor);
> Line 154: Removed function "mysql_fetch_array" called
    mysql_fetch_array($this->cursor);
> Line 164: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($this->table);
> Line 165: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($filename);
> Line 166: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($filesize);
> Line 167: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($filetime);
> Line 168: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string(time());
> Line 169: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string(base64_encode(serialize($analysis)));
> Line 170: Removed function "mysql_query" called
    mysql_query($SQLquery, $this->connection);
> Line 180: Removed function "mysql_real_escape_string" called
    mysql_real_escape_string($this->table);
> Line 187: Removed function "mysql_query" called
    mysql_query($SQLquery, $this->connection);
> Line 188: Removed function "mysql_error" called
    mysql_error($this->connection);

from getid3.

rejhgadellaa avatar rejhgadellaa commented on June 29, 2024

Right, I might 've missed that last version..? Anyway, thanks for the reply. I had a feeling this would be the case but wasn't sure :)

from getid3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.