cakephp/cakephp — pull request #1277 by real34 (2013-05-08 10:27:32+00:00)
Title: Prevent autoload when checking for the existence of HttpException

The class_exists() check has been added in https://github.com/cakephp/cakephp/commit/4f29f58a5e9689adda104d77edf2c0cfe5101cd1#L1R28 to prevent a side effect with a PECL extension.

However if an autoloader such as the Composer one is loaded, it will try to require this `exceptions.php` file again:
```
'HttpException' => $vendorDir . '/pear-pear.cakephp.org/CakePHP/Cake/Error/exceptions.php',
```
this will result in a "Fatal error: Cannot redeclare class CakeBaseException"

I have not find a cleaner way to prevent this error and cannot think of another side effect this change could have.