Fixed scope issue in PHP 5.3.

Signed-off-by: crynobone <crynobone@gmail.com>