Zaphenath-paneah was the name that Pharaoh gave to Joseph when he made him governor of Egypt. This takes place in Genesis 41:41 in The Bible, so you can read it for yourself how it all happened. It was common in Egypt when for example a pharaoh ascended the throne for his name to be changed. I believe this is why Joseph's name was changed.