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);
class File
andclass Dir
and constructorfunction File
andfunction 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);