gordonmcvey / reefknot

Reefknot framework for PHP
Apache License 2.0
5 stars 0 forks source link

Disabling and enabling an autoloader will move it to the bottom of the autoload queue #12

Open gordonmcvey opened 11 years ago

gordonmcvey commented 11 years ago

If you disable an autoloader it removes itself from the autoload queue. When you re-enable it the autoloader is appended to the end of the queue. This means that autoloading can occur in a different order from that which was originally intended if autoloaders are disabled and enabled.

Enabling and disabling autoloading shouldn't change the order of the autoloaders in the autoload queue, it should just cause disabled autoloaders to be skipped. When they are re-enabled, they should resume their original position in the autoload queue.