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

Update example to output a single line on PHP 7.2 #114

Merged
merged 1 commit into from
Jun 4, 2018

Conversation

SkUrRiEr
Copy link
Contributor

@SkUrRiEr SkUrRiEr commented Jun 4, 2018

Somewhere in the development leading up to PHP 7.2, var_dump() started outputting the file and line number as part of it's output. This causes one of the end-to-end tests to fail as the example script it uses outputs twice as many lines as expected.

This fixes this by using var_export() and a little wrapping to output useful debug data if something goes wrong and sensible output otherwise.

Somewhere in the development leading up to PHP 7.2, var_dump()
started outputting the file and line number as part of it's output.
This causes one of the end-to-end tests to fail as the example script
it uses outputs twice as many lines as expected.

This fixes this by using var_export() and a little wrapping to output
useful debug data if something goes wrong and sensible output
otherwise.
@SkUrRiEr
Copy link
Contributor Author

SkUrRiEr commented Jun 4, 2018

Failures are on HHVM and seem unrelated to my changes.

You should probably consider enabling PHP 7.2 builds on Travis.

Copy link
Owner

@giorgiosironi giorgiosironi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebuilt after your fix for HHVM. Thanks.

@giorgiosironi giorgiosironi merged commit d921bbe into giorgiosironi:master Jun 4, 2018
giorgiosironi added a commit that referenced this pull request Jun 4, 2018
@SkUrRiEr SkUrRiEr deleted the fix-tests-on-7.2 branch June 5, 2018 13:00
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.

2 participants