Eclipse feels like an OS in some respects due to the amount of configuration options there are. Eclipse has file extension to editor mapping. You can map .php files to an Eclipse editor, but it may not be the default. If you installed the PHP Plugin[1] for eclipse, I'd bet that your .php files would then open in it's editor instead of the system default.
[1] http://projects.eclipse.org/projects/tools.pdt