You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
belliash
pushed a commit
to belliash/AerScript
that referenced
this issue
Jul 12, 2018
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:
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?
The text was updated successfully, but these errors were encountered: