Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Disable asserts by default #73

Merged
merged 1 commit into from
Apr 26, 2016
Merged

Disable asserts by default #73

merged 1 commit into from
Apr 26, 2016

Conversation

gromero
Copy link
Contributor

@gromero gromero commented Apr 15, 2016

HHVM >= 3.12 enables asserts by default, which is what PHP does, but
previously it had them disabled by default. When oss-performance runs
against Mediawiki target it now fails for HHVM >= 3.12. At the client
side we get and "Internal server error": HTTP/1.1 500 hphp_invoke. At
the server side we get "Fatal error: assert() is not supported: assert
with strings argument in RepoAuthoritative mode in //mediawiki-
1.26.2/includes/parser/Preprocessor_Hash.php on line 485". Thus this
php.ini param. solves this issue by disabling asserts in repo-auth mode.

HHVM >= 3.12 enables asserts by default, which is what PHP does, but
previously it had them disabled by default. When oss-performance runs
against Mediawiki target it now fails for HHVM >= 3.12. At the client
side we get and "Internal server error": HTTP/1.1 500 hphp_invoke. At
the server side we get "Fatal error: assert() is not supported: assert
with strings argument in RepoAuthoritative mode in /<tmpdir>/mediawiki-
1.26.2/includes/parser/Preprocessor_Hash.php on line 485". Thus this
php.ini param. solves this issue by disabling asserts in repo-auth mode.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@gromero
Copy link
Contributor Author

gromero commented Apr 15, 2016

related to facebook/hhvm#6764

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@Orvid Orvid merged commit 9dd9706 into facebookarchive:master Apr 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants