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

empty( self::$x ) reports 5.5.0 #238

Closed
tivnet opened this issue Dec 4, 2017 · 3 comments
Closed

empty( self::$x ) reports 5.5.0 #238

tivnet opened this issue Dec 4, 2017 · 3 comments
Assignees
Labels

Comments

@tivnet
Copy link

tivnet commented Dec 4, 2017

This code runs OK under 5.2, I believe. But it's reported as "5.5.0"

<?php

class aa {
    public static $x = "a";
    public static function check(){
        if( !empty(self::$x)) echo "ok";
    }
}

aa::check();
@slaFFik
Copy link

slaFFik commented Dec 4, 2017

Example check: https://3v4l.org/V02RW

Output for 5.0.0 - 5.6.30, 7.0.0 - 7.2.0:
ok

@llaville llaville self-assigned this Dec 6, 2017
@llaville llaville added the bug label Dec 6, 2017
llaville added a commit that referenced this issue Dec 6, 2017
@llaville
Copy link
Owner

llaville commented Dec 6, 2017

Fixed in repo, bugfixe release 5.0.9 is on way !
Thanks for reporting.

@llaville llaville closed this as completed Dec 6, 2017
@tivnet
Copy link
Author

tivnet commented Dec 6, 2017

@llaville Works OK now, thank you!

@llaville llaville mentioned this issue Aug 18, 2020
24 tasks
llaville added a commit that referenced this issue Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants