Bug Fix: Not working before PHP 5.4.0