does not work inside closures before PHP 5.4.