Use intermediate variable to work in PHP 5.3

Signed-off-by: Michal Čihař <michal@cihar.com>