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

ord() function is incorrectly implemented #18

Open
Dingo64 opened this issue Jun 29, 2017 · 0 comments
Open

ord() function is incorrectly implemented #18

Dingo64 opened this issue Jun 29, 2017 · 0 comments

Comments

@Dingo64
Copy link

Dingo64 commented Jun 29, 2017

Function ord() known from PHP and Delphi/Free Pascal/Lazarus should return ascii code for a given char. And ASCII codes are 0-255. So the code below under PHP returns 197:

<?php
$str = 'ś';
echo ord($str[0]);

However under PH7 it returns -59.
Looks like PH7 stores characters not as an array of UINT8 but an array of INT8. Why is that? Any chance for a fix?

belliash pushed a commit to belliash/AerScript that referenced this issue Jul 12, 2018
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

1 participant