phalcon/cphalcon — pull request #2492 by joni (2014-06-01 09:16:15+00:00)
Title: Extra } in Formatter::interpolate with numeric index

`\Phalcon\Logger\Formatter::interpolate` leaves a closing } behind when using numeric indices for `context`. That is, the following produces the message `Hello World}`:
```
info("Hello {0}", ['World']);
```
This seems to happen because the code doesn't take into account that the return value of `spprintf` does not count the terminating NUL character.