PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Syntax Error, unexpected '(' in Unknown on Line 14

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration
View previous topic :: View next topic  
Author Message
iceangel89



Joined: 09 Sep 2009
Posts: 1

PostPosted: Wed Sep 09, 2009 4:21 am    Post subject: Syntax Error, unexpected '(' in Unknown on Line 14 Reply with quote

i get

Quote:
Syntax Error, unexpected '(' in Unknown on Line 14


when i run "pear" in cmd.

i am on windows x64 so i am thinking maybe the "Program Files (x64)" brackets is causing this?
Back to top
View user's profile Send private message
ashnazg



Joined: 27 Nov 2008
Posts: 8

PostPosted: Wed Sep 09, 2009 3:39 pm    Post subject: Try Escaping It Reply with quote

If those parentheses are causing the issue, try editing the actual file and escaping the parentheses using backslashes. If that does indeed solve the issue for you, please consider filing a bug at [1] advising of the bug behavior and that the backslash fix solves it.


[1] -- http://pear.php.net/bugs/report.php?package=PEAR&action=Report+Bug
Back to top
View user's profile Send private message
bwaters



Joined: 24 Sep 2009
Posts: 1
Location: Tyler, TX

PostPosted: Fri Sep 25, 2009 4:55 pm    Post subject: fixed it Reply with quote

I was having this same problem on my vista 64-bit box.

I figured out a fix.

in pear.bat at the very end i changed the command to
Code:


"%PHP_PEAR_PHP_BIN%" -C -d output_buffering=1 -d safe_mode=0 -d open_basedir="" -d auto_prepend_file="" -d auto_append_file="" -d variables_order=EGPCS -d register_argc_argv="On" -d "include_path='%PHP_PEAR_INSTALL_DIR%'" -f "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9


The difference is in the include_path directive.
You have to do it like -d "include_path='%PHP_PEAR_INSTALL_DIR%'"
The double quotes are to keep the shell from getting upset and the single quotes get used by php itself.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement