天道酬勤,学无止境

ubersvn

SVN post/pre commit hook to check php syntax on windows

Question I have recently migrated my SVN server to a windows server. It all went very smoothly - it was too good to be true - so it turned out. I have/had a pre-commit hook which ran a syntax check on any PHP file committed and rejected the commit with a suitable error message if it failed the check - I will copy this below. Obviously this does not work on Windows, and I have not been able to find an alternative which does. Does anyone out there have anything? I wouldn't really know where to start converting the below to run on a Windows system, expecially given the number of *nix tools it is

2021-11-08 20:37:25    分类:技术分享    php   svn   ubersvn