ClassFolder::isSubFolder(), recursive dependency
Open Source Document Management System
Brought to you by:
steinm
The function fails to work due to bad use of comparison operator != with folder->getPath() array with instances. It returns a php error:
PHP Fatal error: Nesting level too deep - recursive dependency?
To understand error details see official documentation at:
http://php.net/manual/en/language.oop5.object-comparison.php
Look at comment details:
http://php.net/manual/en/language.oop5.object-comparison.php#71623
I fixed this, see attached file. I also changed function header comments to better assist on understanding what this function should do.
It will be fixed in 4.3.14 and 5.0.0. Thanks for finding this.