Skip to content

Enable zend.assertions=1 by default #582

@Seldaek

Description

@Seldaek

Describe the bug
It appears zend.assertions is set to 0 or -1 by default with setup-php.

As you can see on this build I messed up because I didn't have assertions enabled locally so I didn't realize I had broken assertions, and when I pushed only some builds failed, which was even weirder.

Per https://www.php.net/manual/en/function.assert.php you can see the recommended development value is 1.

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems
ALL

PHP versions

7+

To Reproduce

<?php assert(false);

Expected behavior

It should throw but it doesn't on php7+

Screenshots/Logs

https://github.com/Seldaek/jsonlint/runs/5788312601

Additional context

Are you willing to submit a PR?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions