-
Notifications
You must be signed in to change notification settings - Fork 66
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
Improve consistency in PHP version ifdef usage #56
Comments
Part of #34 Agent Tests |
Unless there is a specific ZEND_8_0_X_API_NO or another ZEND_7_x_API_NO block, Change to be: This will avoid confusion and increase clarity because the majority of those blocks also apply to PHP8. |
Is there any progress on this? |
Hello @insanebits, and thank you for your interest! This issue is in our backlog to be worked on, but currently has no scheduled date. |
Summary
The version specific PHP ifdefs should refer to the named version only and not the named version or higher.
Desired Behavior
PHP7
should only refer to PHP version 7, not version 8 in order to be consistent with thePHP5
andPHP8
ifdefs.Possible Solution
We may also want to consider adding something like a
PHP7_PLUS
ifdef in order to avoid the more complex zend module version comparison ifdef used now.Additional context
PR #49 is where the
PHP8
ifdef was first added and when the inconsistency was introduced (since there is now a version greater than PHP 7.x).The text was updated successfully, but these errors were encountered: