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

PHP 5.6 **-Operator not recognized #211

Closed
sudo-web opened this issue Oct 19, 2015 · 4 comments
Closed

PHP 5.6 **-Operator not recognized #211

sudo-web opened this issue Oct 19, 2015 · 4 comments
Assignees
Milestone

Comments

@sudo-web
Copy link

Since PHP 5.6 there is the a alternative to the pow (Exponential expression)
e.g. you can use the **_-_Operator like this 10 ** 3 insted of pow(10, 3)
Unfortunately it is not recognized by php-compat-info Version 4.5.1

@llaville llaville self-assigned this Oct 20, 2015
@llaville
Copy link
Owner

Currently only supported on branch 5.0 with migration analyser

@llaville
Copy link
Owner

I'll see how I can solved in 4.5 branch (currently master), for a possible 4.5.2
There won't have any 4.6 version. Next one is 5.0

@llaville
Copy link
Owner

When Exponentiation is used as argument of function/method, CompatInfo 4.5.1 already detect it

<?php
printf("2 ** 3 ==      %d\n", 2 ** 3);

But not yet with this syntax

<?php
$a = 2;
$a **= 3;
printf("a ==           %d\n", $a);

@llaville
Copy link
Owner

Solution available with fix b871a82

Will be part of future 4.5.2 (no date planned yet)

@llaville llaville added this to the 4.5.2 milestone Oct 29, 2015
@llaville llaville closed this as completed Nov 3, 2015
@llaville llaville mentioned this issue Aug 16, 2020
24 tasks
llaville added a commit that referenced this issue Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants