Cash-strapped San Bernardino said this morning that it has filed for bankruptcy protection, three weeks after city leaders preliminarily approved the action. City Attorney James Penman told Southern California Public Radio that the emergency petition, filed in federal bankruptcy court in Riverside, came a little ahead of schedule in order to avoid the possible seizure of city assets by creditors.