Bug #19402 [Com]: syntax error when executing phpcs
| From: | tklingenberg@lastflood.com | Date: | Sat, 12 May 2012 21:30:05 +0000 |
| Subject: | Bug #19402 [Com]: syntax error when executing phpcs | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8658@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
Comment by: tklingenberg@lastflood.com
Reported By: brandon dot mull at solohealth dot com
Summary: syntax error when executing phpcs
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:
Good to read that you could get it to work.
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2012-05-12 21:50:48] tkli
This bug might be related: http://pear.php.net/bugs/bug.php?id=16644 -
I'm on windows XP which has not that (x86) directory and I'm not able to
reproduce.
------------------------------------------------------------------------
[2012-05-12 21:19:09] awtrost
I ran the following:
php -n -d include_path="c:\Programs(x86)\PHP\pear"
"c:\Programs(x86)\PHP\phpcs"
-h
and it runs phpcs and gives the same popup error
alert box
----------------------------
title - PHP Error
message - syntax error, unexpected '(' in Unknown on line 9
------------------------------------------------------------------------
[2012-05-12 21:16:29] tkli
Can you start phpcs with disabling your php.ini? That is the -n switch,
e.g.:
php -n -d include_path="c:\Programme\PHP\pear" "c:\Programme\PHP\phpcs"
-h
------------------------------------------------------------------------
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