They are different things.
But because one can make philosophies out of everything it is to be expected that philosophers and their addiction into intellectual entanglements tend to see the teachings of the historical Buddha as philosophy; in the same way, it is expected that religious people and their addiction into blind faith believes tend to see the teachings of the historical Buddha as a religious edifice... ...what this or other people can not see is that the teachings of the historical Buddha are neither philosophical amusements nor blind faith shelters but teachings, an outstanding group of teachings for deliverance of mind, including the deliverance of its usual jugglery around things. The teachings of the historical Buddha do not call for jugglery but for peaceful and quite contemplation and awareness of what is being taught, IMO. For example, if we have a set of instructions to clone a cell or to recombine a liver gene into a bacteria you follow the instructions so to clone or recombine. You can choose just to sit down, argue and amuse your mind into the philosophy of cloning or recombining but you will never clone or recombine the gene. In the same way, we can sit down and amuse ourselves making philosophies out from the teachings of the Buddha but we are not following the instructions of deliverance of mind and deliverance will never happen.