We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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)
The text was updated successfully, but these errors were encountered:
Fixed PHP5 incompatibility with isset() on ArrayObjects
250804e
Closes facebook#3309
31de467
Is this fixed? There is still similar error with ArrayAccess. See https://stackoverflow.com/questions/51697914/php-5-6-arrayaccess-function-isset-calls-offsetget-and-causes-undefined-index and https://3v4l.org/7C2Fs.
ArrayAccess
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
This is related to #2181 and #2871.
In Zend PHP you get the following:
And in HHVM you get the following:
The text was updated successfully, but these errors were encountered: