Skip to content

Improve consistency in PHP version ifdef usage #56

Open
@joshuabenuck

Description

@joshuabenuck

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 the PHP5 and PHP8 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestinternalMoved to NR Tracking System

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions