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

Bitwise Operator Or issue #1056

Closed
sergeyklay opened this issue Aug 15, 2015 · 2 comments
Closed

Bitwise Operator Or issue #1056

sergeyklay opened this issue Aug 15, 2015 · 2 comments
Labels
nfr New Feature Request

Comments

@sergeyklay
Copy link
Contributor

php works fine

$a = 16;
$a |= $a >> 1; // 24
// the same as
// $a = $a | ($a >> 1);

zephir throws Zephir\ParseException with "Syntax error" message

var a;

let a = 16;
let a |= a >> 1;
Syntax error in /tmp/foo/foo/bar.zep on line 33

            let a |= a >> 1;
    --------------^

works fine

var a;

let a = 16;
let a = a | (a >> 1);

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ovr ovr added the nfr New Feature Request label Aug 18, 2015
@ovr
Copy link
Contributor

ovr commented Aug 18, 2015

It's not implemented in parser

@sergeyklay
Copy link
Contributor Author

This issue was moved to zephir-lang/php-zephir-parser#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nfr New Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants