| 1 | <?php |
||
| 13 | class PhpEngine extends AbstractEngine |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @return string |
||
| 17 | */ |
||
| 18 | public function type() |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $templateString The template string to render. |
||
| 25 | * @param mixed $context The rendering context. |
||
| 26 | * @return string The rendered template string. |
||
| 27 | */ |
||
| 28 | public function renderTemplate($templateString, $context) |
||
| 42 | } |
||
| 43 |
On one hand,
evalmight be exploited by malicious users if they somehow manage to inject dynamic content. On the other hand, with the emergence of faster PHP runtimes like the HHVM,evalprevents some optimization that they perform.