Blog

ZamfBrowser and subversion

Just a quick one for the people that use ZamfBrowser and for myself (as a reminder)

I’m playing with ZendAmf right now so I’ve downloaded and installed ZamfBrowser, and got a really weird behavior.
I was able to get my gateway working, ie I could run my app and everything was fine, trying to access the services using ZamfBrowser was giving me an error.
Looking at the ZamfBrowser, it ties to load all the files/directories under the directories you specified for your services, including the .svn, where it fails.
So just replace line 62 (in the getServices method) with this one

if (file_exists($filePath) && $file != "." && $file != ".." && $file != ".svn")

and it should be all good now.