Kallys / MediaDownloader

A WebUI for youtube-dl, implementing management for background downloads (queuing, concurrency...)
Other
75 stars 17 forks source link

PHP 7.2.x: Fatal error: Cannot use 'Object' as class name as it is reserved #15

Closed zerojay closed 6 years ago

zerojay commented 6 years ago

Attempting to run this under PHP 7.2.1 results in the following error being output into the browser when attempting to run/install the first time:

500 Internal Server Error Fatal error: Cannot use 'Object' as class name as it is reserved

A search for the error turns up that the issue here is that that PHP 7.2 no longer allows Object to be used as a classname and quite a lot of PHP apps out there needed to fix this error to get them working again.

Kallys commented 6 years ago

Hi ! Thanks for your help. I made a quick fix renaming Object class, please tell me if it works now.

zerojay commented 6 years ago

That fix appears to work, thank you.