Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [ticket/11630] Improvements to the PHP lint pre-commit hook | Matthew Fonda | 2013-07-06 | 1 | -52/+5 |
| | | | | | | | | | | The PHP lint pre-commit hook fails to display any output when an error other than a parse error is decteced. Additionally, the hook may not display any meaningful output depending on php.ini settings. This commit removes the dependency on php.ini. PHPBB3-11630 | ||||
* | [ticket/10760] Fix numbering in php fun facts. | Oleg Pudeyev | 2012-04-04 | 1 | -5/+5 |
| | | | | PHPBB3-10760 | ||||
* | [ticket/10760] Value must be quoted as it might be two words. | Oleg Pudeyev | 2012-04-04 | 1 | -1/+1 |
| | | | | PHPBB3-10760 | ||||
* | [ticket/10760] PHP is great. This commit is the proof. | Oleg Pudeyev | 2012-04-04 | 1 | -0/+24 |
| | | | | PHPBB3-10760 | ||||
* | [ticket/10760] Catch both versions of parse error output in php. | Oleg Pudeyev | 2012-04-04 | 1 | -0/+14 |
| | | | | PHPBB3-10760 | ||||
* | [ticket/10760] Account for display_errors=stderr in pre-commit hook. | Oleg Pudeyev | 2012-04-03 | 1 | -1/+7 |
| | | | | | | | | | With that php.ini value set errors are printed to stderr, therefore by redirecting stderr to /dev/null we also throw out the errors. Instead merge stderr into stdout. PHPBB3-10760 | ||||
* | [ticket/10760] Quote PHP_BIN when using it. | Oleg Pudeyev | 2012-04-03 | 1 | -2/+2 |
| | | | | | | This should make a difference on windows where paths may include spaces. PHPBB3-10760 | ||||
* | [ticket/10760] Use echo -e only if echo understands -e. | Oleg Pudeyev | 2012-04-03 | 1 | -2/+9 |
| | | | | | | | | | /bin/echo on freebsd and dash's builtin echo do not understand -e, therefore -e is printed with the other messages in such cases. Test if echo understands -e, if not do not use it. PHPBB3-10760 | ||||
* | [ticket/10760] Use externally specified PHP_BIN if any. | Oleg Pudeyev | 2012-04-03 | 1 | -3/+5 |
| | | | | | | | | | | | | | We have a PHP_BIN variable but we always set it unconditionally, therefore in order to use a different php binary one had to modify the hook script. Instead set PHP_BIN if it is not set. Now one can set PHP_BIN in their environment to use a non-default php binary. PHPBB3-10760 | ||||
* | [ticket/9777] Print error message in pre-commit hook when php is not installed. | Oleg Pudeyev | 2010-08-19 | 1 | -0/+7 |
| | | | | PHPBB3-9777 | ||||
* | [git-tools] Use @ instead of : in sed command in pre-commit hook for wider ↵ | Oleg Pudeyev | 2010-04-13 | 1 | -1/+1 |
| | | | | compatibility. | ||||
* | [git-tools] Adjusted pre-commit hook to run under freebsd /bin/sh. | Oleg Pudeyev | 2010-04-13 | 1 | -2/+5 |
| | |||||
* | [git-tools] Changed pre-commit hook to use sh instead of bash | Oleg Pudeyev | 2010-04-13 | 1 | -1/+1 |
| | |||||
* | [git-tools] add note about PHP_BIN using env | Igor Wiedler | 2010-04-03 | 1 | -0/+1 |
| | |||||
* | [git-tools] do not display stderr | Igor Wiedler | 2010-04-03 | 1 | -1/+1 |
| | |||||
* | [git-tools] Use env to find the correct paths to binaries. | Chris Smith | 2010-04-03 | 1 | -2/+2 |
| | |||||
* | [git-tools] Display what parse errors were found. | Chris Smith | 2010-04-03 | 1 | -1/+6 |
| | |||||
* | [git-tools] This script requires bash to run, so point directly to bash. | Chris Smith | 2010-04-03 | 1 | -1/+1 |
| | |||||
* | [git-tools] Improvements for the pre-commit hook | Igor Wiedler | 2010-03-17 | 1 | -5/+28 |
| | | | | | | | One major issue with the pre-hook so far was partially staged files, because it used filenames for php lint. These changes will make the hook read the file contents from the index instead. Great thanks to David Soria Parra. | ||||
* | [git-tools] Some pre-commit enhancements, abolish tempfile | Igor Wiedler | 2010-03-11 | 1 | -4/+4 |
| | |||||
* | [git-tools] use mktemp in pre-commit (thanks nn-) | Igor Wiedler | 2010-03-10 | 1 | -2/+1 |
| | |||||
* | [git-tools] pre-commit hook for syntax checking | Igor Wiedler | 2010-03-10 | 1 | -0/+44 |
This pre-commit hook utilises PHP's command-line -l (lint) option, which checks for syntax errors. In case of an error the commit is rejected and the error displayed. Testing is welcome. |