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

Fix for PHP 5.6 #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix for PHP 5.6 #3

wants to merge 4 commits into from

Conversation

white-gecko
Copy link

There is a bug in PHP 5.6 regarding arrays in classes with more then 65538 elements and thus the since the key is limited to 64bit. This PHP bug is discussed in https://bugs.php.net/bug.php?id=68057. and marked as wont-fix.
This bug effects JLexPHP with the array for $yy_cmap.
With these commits, there is a workaround for this bug in PHP 5.6.

- fixed a bug in yy_buffer_read update for large files
- extended the createToken method to allow setting of custom token value
white-gecko added a commit to white-gecko/PHP-SparqlParser that referenced this pull request Nov 25, 2016
This workaround is necessary due to a PHP bug:
https://bugs.php.net/bug.php?id=68057.
This lexer was built based on JLexPHP as proposed in
wez/JLexPHP#3
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

Successfully merging this pull request may close these issues.

2 participants