We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cat test.php
<?php $filePath = __DIR__ . '/file.zep'; $content = file_get_contents($filePath); $a = \zephir_parse_file($content, $filePath); var_dump($a);
cat file.zep
namespace Test; class test { public function testUTF8() { return "dfsfsdf"; } }
php test.php
array(2) { [0]=> array(5) { ["type"]=> string(9) "namespace" ["name"]=> string(4) "Test" ["file"]=> string(28) "/home/izopi4a/tests/file.zep" ["line"]=> int(3) ["char"]=> int(5) } [1]=> array(8) { ["type"]=> string(5) "class" ["name"]=> string(4) "test" ["abstract"]=> int(0) .......
which is expected behavior, but when I add utf8 chars in the file ...
namespace Test; class test { public function testUTF8() { return "сдфггхх"; } }
array(5) { ["type"]=> string(5) "error" ["message"]=> string(42) "Scanner error: -2 сдфггхх"; } }" ["file"]=> string(28) "/home/izopi4a/tests/file.zep" ["line"]=> int(6) ["char"]=> int(8) }
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
Fixed unicode support in the source code
02a036f
Closes #56, #62
Fixed in the development branch. Feel free to open a new issue if the problem appears again. Thank you for contributing!
development
Sorry, something went wrong.
e94bc86
Successfully merging a pull request may close this issue.
cat test.php
cat file.zep
php test.php
which is expected behavior, but when I add utf8 chars in the file ...
cat file.zep
php test.php
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: