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

Zend incompatibility: ArrayObject not valid argument to array functions #2018

Closed
jeffchan opened this issue Mar 10, 2014 · 1 comment
Closed

Comments

@jeffchan
Copy link
Contributor

The following code produces no errors in Zend PHP. However, HHVM throws an error:
HipHop Warning: Invalid operand type was used: expecting an array

$ao = new ArrayObject();
next($ao);
prev($ao);
reset($ao);

I am guessing all of PHP's array functions have issues with ArrayObject as inputs in HHVM.

There was a similar discussion in #1221. Is this something we're looking to fix?

phpMyAdmin is failing a test due to this

jeffchan added a commit to jeffchan/phpmyadmin that referenced this issue Mar 13, 2014
Currently 1 test is still failing, so it's set up to allow for failures.
See: facebook/hhvm#2018

Signed-off-by: Jeff Chan <jefftchan@gmail.com>
@jeffchan
Copy link
Contributor Author

This inconsistency is documented here https://github.com/facebook/hhvm/blob/master/hphp/doc/inconsistencies#L90

will seek to fix phpMyAdmin then

Ocramius added a commit to zendframework/zendframework that referenced this issue Nov 14, 2014
gianarb pushed a commit to zendframework/zend-http that referenced this issue May 15, 2015
ravanscafi added a commit to vindi/vindi-php that referenced this issue Aug 4, 2015
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

1 participant