Bug Fix: Not working before PHP 5.2.3