Skip to content

Fix tests/var_dump.phpt #177

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

Merged
merged 1 commit into from
Nov 28, 2015
Merged

Fix tests/var_dump.phpt #177

merged 1 commit into from
Nov 28, 2015

Conversation

stesie
Copy link
Member

@stesie stesie commented Nov 28, 2015

Recent V8 versions (e.g. 4.8.253 or 4.9.19) consider IsFunction() = true for Closure objects from PHP; but earlier versions didn't.

This ensures consistent var_dump behaviour (sticking to the behaviour with older V8 versions).

See tests/var_dump.diff of failed test:

150+   object(Closure)#1647099308 {
151+       [object Closure]
150-   object(Closure)#%d (0)

Recent V8 versions (e.g. 4.8.253 or 4.9.19) consider
`IsFunction() = true` for Closure objects from PHP; but earlier
versions didn't.

This ensures consistent var_dump behaviour (sticking to the
behaviour with older V8 versions).
stesie added a commit that referenced this pull request Nov 28, 2015
@stesie stesie merged commit f73abfa into phpv8:master Nov 28, 2015
@stesie stesie deleted the fix-vardump-test branch November 28, 2015 16:31
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 this pull request may close these issues.

1 participant