php-to-c-extension
php-to-c-extension copied to clipboard
Parser Error
Error: PHP Parser Error: Syntax error, unexpected '<', expecting T_STRING on line 3
File Name# Dummy.php
Code#
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!!!
not working on windows !
I tested this exclusively on linux box so I did not try windows...
@jimthunderbird You can use http://appveyor.com/
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?
Issue looks to be with src/PHPtoCExt/Converter/CodeReformatConverter.php
I'll pick this up and post any solution here
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.