fix the bug on Client enable for PHP version>=5.4