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

isset function work abnormal #2385

Open
navisoft opened this issue Aug 31, 2022 · 0 comments
Open

isset function work abnormal #2385

navisoft opened this issue Aug 31, 2022 · 0 comments
Assignees

Comments

@navisoft
Copy link

The isset function in the Zephir and the pure PHP return different result.

Zephir:

var test; let test = null; var_dump(isset(test));

var obj; let obj = new Obj; let obj->property = null; var_dump(isset(obj->property));

Output:
bool(true)

Pure PHP:

$test = null; var_dump(isset($test));

$obj = new stdClass; $obj->property = null; var_dump(isset($obj->property));

Output:
bool(false)

@Jeckerson Jeckerson self-assigned this Aug 31, 2022
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