Bug #19402 [Asn]: Syntax error when executing phpcs on Windows with parens in PHP path

From: Date: Mon, 14 May 2012 00:37:20 +0000
Subject: Bug #19402 [Asn]: Syntax error when executing phpcs on Windows with parens in PHP path
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8662@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19402&edit=1 ID: 19402 Updated by: gsherwood@squiz.net Reported By: brandon dot mull at solohealth dot com -Summary: syntax error when executing phpcs +Summary: Syntax error when executing phpcs on Windows with parens in PHP path Status: Assigned Type: Bug Package: PHP_CodeSniffer Operating System: Windows 7 Package Version: 1.3.3 PHP Version: 5.3.9 Assigned To: squiz Roadmap Versions: New Comment: -Summary: syntax error when executing phpcs +Summary: Syntax error when executing phpcs on Windows with parens in PHP path Previous Comments: ------------------------------------------------------------------------ [2012-05-12 22:42:57] tkli I added a PR: https://github.com/squizlabs/PHP_CodeSniffer/pull/31 ------------------------------------------------------------------------ [2012-05-12 22:30:55] awtrost ya looks like that was the issue. thanks for the help! ------------------------------------------------------------------------ [2012-05-12 22:30:04] tkli Good to read that you could get it to work. ------------------------------------------------------------------------ [2012-05-12 22:13:09] awtrost I reinstalled php into a directory without parens and it solved the problem. ------------------------------------------------------------------------ [2012-05-12 22:00:08] tkli Please check if adding the -f parameter and -- at the end in phpcs.bat helps. My edited line: "c:\Programme\PHP\.\php.exe" -d auto_append_file="" -d auto_prepend_file="" -d include_path="c:\Programme\PHP\pear" -f "c:\Programme\PHP\phpcs" -- %* See -f before "c:\Programme\PHP\phpcs". And see -- before %* at the end. Please insert those two changes into your line at the same positions and try again. ------------------------------------------------------------------------ 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=19402 -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19402&edit=1

« previous php.pear.bugs (#8662) next »