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

Provide support of the cast to uchar #82

Open
sergeyklay opened this issue Oct 30, 2019 · 2 comments
Open

Provide support of the cast to uchar #82

sergeyklay opened this issue Oct 30, 2019 · 2 comments

Comments

@sergeyklay
Copy link
Contributor

calling zephir_parse_file with content as follows

    public function extract()
    {
        char ch1;
        string name = "peter";

        let ch1 = name[1];

        return (uchar)ch1;
    }

will print to stderr

unknown type?

@dreamsxin
Copy link
Contributor

dreamsxin commented Oct 31, 2019

Do you think it will be easier to convert uchar/char to zend_string/zval type?

@sergeyklay
Copy link
Contributor Author

I don't think so, but it seems we need to introduce this ability.

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

2 participants