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

PHP5 incompatibility with isset() on ArrayObjects #3309

Closed
whatthejeff opened this issue Jul 30, 2014 · 1 comment
Closed

PHP5 incompatibility with isset() on ArrayObjects #3309

whatthejeff opened this issue Jul 30, 2014 · 1 comment

Comments

@whatthejeff
Copy link
Contributor

This is related to #2181 and #2871.

<?php

class TestArray extends ArrayObject 
{
    public function offsetExists($index) 
    {
        return true;
    }
}

$test = new TestArray();
var_dump(isset($test['abc']));

In Zend PHP you get the following:

bool(true)

And in HHVM you get the following:


Notice: Undefined index: abc in...
bool(false)
@filips123
Copy link

filips123 commented Aug 6, 2018

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

Successfully merging a pull request may close this issue.

2 participants