PURPOSE: This phase I trial is studying the side effects and best dose of photodynamic therapy using porfimer sodium in treating patients with refractory brain tumors, including astrocytoma, ependymoma, and medulloblastoma.