ubersvn

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

纵饮孤独 提交于 2019-12-25 06:32:42
问题 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

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

Deadly 提交于 2019-12-25 06:31:15
问题 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