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

[PHP 8.4] Change PHP_DEBUG constant usage to ZEND_DEBUG_BUILD #2422

Merged
merged 1 commit into from
May 11, 2024
Merged

[PHP 8.4] Change PHP_DEBUG constant usage to ZEND_DEBUG_BUILD #2422

merged 1 commit into from
May 11, 2024

Conversation

Ayesh
Copy link
Contributor

@Ayesh Ayesh commented Jan 8, 2024

In PHP 8.4, the type of PHP_DEBUG changes from int to bool. Please also see PHP.Watch: PHP 8.4: PHP_ZTS and PHP_DEBUG constant value type changed from int to bool.

This changes the constants to ZEND_DEBUG_BUILD, which contains the same value but as a bool across all PHP versions.

  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I updated the CHANGELOG

In PHP 8.4, the type of `PHP_DEBUG` changes from `int` to `bool`.
See [PHP.Watch: PHP 8.4: `PHP_ZTS` and `PHP_DEBUG` constant value type changed from `int` to `bool`](https://php.watch/versions/8.4/PHP_ZTS-PHP_DEBUG-const-type-change).

This changes the constants to `ZEND_DEBUG_BUILD`, which contains the same value but as a `bool` across all PHP versions.
Copy link

sonarcloud bot commented Jan 8, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Jeckerson Jeckerson merged commit abc2176 into zephir-lang:development May 11, 2024
1 check passed
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