contao/core — pull request #5075 by tristanlins (2012-11-29 09:54:35+00:00)
Title: Fix class detection for realy small files.

If I have a realy small class file (less then 512 bytes), the autoload creator will fail.
A real live example may look like this:
```php

* @link http://bit3.de
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/

namespace FooBarZap\Extension\DataContainer;

class Content
{
public function updateMandatories()
{
$GLOBALS['TL_DCA']['tl_content']['fields']['headline']['eval']['mandatory'] = $GLOBALS['TL_CONFIG']['mysetting'];
}
}
```
This file only contains 461 bytes!
Most files may be bigger than 512 bytes. But when I start development I often create simple prototypes, use the autoload create to register them and this will not work.