Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser Error #14

Open
azcpavel opened this issue Oct 20, 2015 · 7 comments
Open

Parser Error #14

azcpavel opened this issue Oct 20, 2015 · 7 comments

Comments

@azcpavel
Copy link

Error: PHP Parser Error: Syntax error, unexpected '<', expecting T_STRING on line 3

File Name#
Dummy.php

Code#

@blendsdk
Copy link

I have the same issue. BTW looking at the build_extension.php, I would suggest to rewrite the file using standard Symfony console and Filesystem components. This way it will be testable. The utility does not work on ubuntu either. I have downloaded the lastest version of Zephir and it does not contain any "install-json" utility!!!

@iraniamir
Copy link

not working on windows !

@jimthunderbird
Copy link
Owner

I tested this exclusively on linux box so I did not try windows...

@sergeyklay
Copy link

@jimthunderbird You can use http://appveyor.com/

@Stevehans
Copy link

I'm hitting the same issue on Ubuntu, I've cloned json-c to get past that issue but now hitting the initial error above, did anybody resolve it?

@Stevehans
Copy link

Issue looks to be with src/PHPtoCExt/Converter/CodeReformatConverter.php

I'll pick this up and post any solution here

@Stevehans
Copy link

The issue is that the code is assuming the contents of the lines in the ASTXMLLines array rather than parsing it as XML,

Converter.c needs + 11 changed to + 17 to cater for extends and implements (presumably new since the version of php that this was originally written for)

Guessing we'll probably see other similar issues, hope this helps someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants