jkuchar / FileDownloader

Allows you to send files to browser from Presenter. (also can be used without Nette) Allows you to log and restrict access to these files. There is also support for partial downloads and files over 4GB!
http://addons.nette.org/jkuchar/filedownloader
Other
28 stars 10 forks source link

PHP Fatal error: Cannot use Nette\Object as Object because 'Object' is a special class name #23

Open ghost opened 6 years ago

ghost commented 6 years ago

PHP 7.2.3 (cli) (built: Mar 2 2018 15:48:10) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.3, Copyright (c) 1999-2018, by Zend Technologies with Xdebug v2.6.0alpha1, Copyright (c) 2002-2017, by Derick Rethans

the pic is the discription for what is new in PHP 7.2.3 image

this library cannot normal work an php >7 version

jkuchar commented 6 years ago

Yep, this is because it uses Nette\Object, which is not supported on PHP7 because of its name. Could you please provide pull request which uses SmartObject instead? https://doc.nette.org/cs/2.4/smartobject

jkuchar commented 6 years ago

There should be no more incompatibilities, just this formal one.