contao/core — pull request #4776 by tristanlins (2012-09-12 05:30:32+00:00)
Title: Correctly search for namespace declaration.

The autoload creator will fail, if there is no namespace in the PHP file, but the string *namespace* in the first 1024 bytes.

A working live example:

***MyClass.php***
```php
'system/modules/my/MyClass.php'
);
```

I change the test if there is a namespace declaration in the buffer into an regexp to solve this problem.