Skip to content

[8.4.0RC2] Don't see new rounding modes in standard extension #16446

Closed as not planned
@llaville

Description

@llaville

Description

Hello,

Yesterday, I've begun to test PHP 8.4.0RC2 with Docker image php:8.4.0RC2-fpm, digest sha256:81309376579315d689dd6d257d14c17cadbe233c21f16cd4d10a971181f212b7 On Ubuntu 22.04 LTS platform.

Related to implementation of feature Add 4 new rounding modes to round() function,
I don't see any condition in code

But when I try to use the extension reflection (php --re sandard | grep ROUND) I don't see new constants.

Did I missed something ?

Resulted in this output:

    Constant [ <persistent> int PHP_ROUND_HALF_UP ] { 1 }
    Constant [ <persistent> int PHP_ROUND_HALF_DOWN ] { 2 }
    Constant [ <persistent> int PHP_ROUND_HALF_EVEN ] { 3 }
    Constant [ <persistent> int PHP_ROUND_HALF_ODD ] { 4 }

PHP Version

PHP 8.4.0RC2

Operating System

Ubuntu 22.04 LTS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions