codeguy/Slim — pull request #312 by briannesbitt (2012-06-15 15:15:40+00:00)
Title: Fixed issue that saw any echo'd output before the $app->run() call get duplicated in the output stream.

If you had any echo'd output before the $app->run() call it would get duplicated in the page output when output_buffering is turned on. In PHP 5.4+ (maybe before?) output_buffering is set to 4096 by default.

Ex.
```php
\n", __FILE__, __LINE__);

$app->get('/hello/:name', function ($name) {
echo "Hello, $name!
\n";
});

$app->run();
printf("%s:%d
\n", __FILE__, __LINE__);
?>
```
Output =>

```html
B:\dev\slimapp\index.php:5
Hello, brian!
B:\dev\slimapp\index.php:5
B:\dev\slimapp\index.php:12
```