Only load PHP configuration files

Helps if you have other files in this directory (for example Capistrano deploy.rb)
Merge pull request #6781 from morrislaptop/patch-1

[5.0] Only load PHP configuration files