marekrei / encode-explorer

http://encode-explorer.siineiolekala.net
238 stars 120 forks source link

Class name and function name cause errors #85

Closed tonycstech closed 3 years ago

tonycstech commented 3 years ago

class File and class Dir and constructor function File and function Dir have same names with the class. PHP gives error that keeps accumulating to mega or even gigabytes in size Please change class names to From File to FolderFile and from Dir to Folder and change these two lines. From $this->dirs[] = new Dir($object, $this->location); To $this->dirs[] = new Folder($object, $this->location); and From $this->files[] = new File($object, $this->location); To $this->files[] = new FolderFile($object, $this->location);

tonycstech commented 3 years ago

Resolved with __construct