upgrade behavor for PHP 5.4