Philosophy is a tradition of thought, that originates from a guy in ancient athens. With that, it is a collection of texts.
The topics of these text vary. These text's cover those topics that are usually considered to be philosophical, but also those that bleed into religion, history and science.
Science, or as newton called it: 'natural philosophy' used to be a philosophical discipline. At my university the scientific 'faculty' left the 'philosophical' faculty only in the sixties