Edit report at https://pear.php.net/bugs/bug.php?id=20403&edit=1
ID: 20403
Updated by: [email protected]
Reported By: 303170436 at qq dot com
Summary: Network connection error with SVN pre-commit
-Status: Feedback
+Status: Closed
Type: Bug
Package: PHP_CodeSniffer
Operating System: centos6.4
Package Version: 1.5.4
PHP Version: 5.3.25
Assigned To: squiz
Roadmap Versions:
New Comment:
-Status: Feedback
+Status: Closed
Previous Comments:
------------------------------------------------------------------------
[2014-09-17 08:30:25] jouny
ok, i think we can resolve this problem, and can closed this bugs
thanks, best regards~
------------------------------------------------------------------------
[2014-09-17 07:10:02] squiz
So it is the size of the output that causes a problem? In that case, you
could use:
/root/pear/bin/scripts/phpcs-svn-pre-commit --report=summary "$REPOS" -t
"$TXN"
>&2 || exit 1
Which will print a very short summary report with how many errors and
warnings are in
each file, but you'd need to run PHPCS directly on the file to get the
list of issues that
need fixing.
------------------------------------------------------------------------
[2014-09-17 04:02:58] jouny
thanks very much
now i had tested i found that error cause from SVN,
when the error message return so much from SVN, it will trigger the
"Network connection closed unexpectedly"
so this is SVN bug?
------------------------------------------------------------------------
[2014-09-16 08:06:08] squiz
I had a read of that link and tried a commit with errors in multiple
files and still can't get
any problems to occur. So I don't think PHPCS is crashing or existing
incorrectly in any
of these cases. Even when it does fail to check, the pre-commit hook
doesn't report that
network error to me.
I really don't think I'm going to be able to find the problem you're
having with the pre-
commit hook. I haven't had anyone report anything like this before, so
I'm not even
sure where to start looking or how to replicate it.
------------------------------------------------------------------------
[2014-09-12 10:19:14] jouny
Dear Greg
i had try like that
svn/hooks/pre-commit:
/data/svntools/PHP_CodeSniffer-master/scripts/phpcs-svn-pre-commit
"$REPOS" -t "$TXN" >&2 || exit 1
error message?
# svn commit -m ''
Sending index.php
Sending test.php
Transmitting file data ..svn: Commit failed (details follow):
svn: Network connection closed unexpectedly
i have tested the result like this:
linux server A => linux server A --- ok (PHP_CodeSniffer working well)
linux server B => linux server B --- ok
linux server A => linux server B --- error (svn: Network connection
closed unexpectedly)
linux server B => linux server A --- error
my local machine => linux server A --- error
my local machine => linux server B --- error
disabled iptables also happen
PHP_CodeSniffer has tested
PHP_CodeSniffer-master
2.0.0RC1
1.5.4
1.5.3
subversion has tested
1.6.2
1.8.10
1.8.9
php has tested
5.3.25
5.4.32
and i found the question like this:
http://stackoverflow.com/questions/20377510/svn-commit-results-in-e210002-network-connection-closed-unexpectedly-not-usi
i don't know if is the same as me
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=20403
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20403&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.