Skip to content

Is PHP_ROUND_TOWARD_ZERO Supposed to Exist in Php8.4? #16701

@oleibman

Description

@oleibman

Description

According to https://wiki.php.net/rfc/new_rounding_modes_to_round_function, it should. It doesn't seem to be present in a nightly upload of Php8.4. For now, I just need to know if it has a new name, or if it has been decided not to proceed with this change in Php 8.4, or if there's just something wrong with the version I'm using.

The following code:

<?php
echo PHP_ROUND_TOWARD_ZERO, "\n";

Resulted in this output:

Error: Undefined constant "PHP_ROUND_TOWARD_ZERO" in Command line code on line 1

But I expected this output instead:

Something other than an error message.

PHP Version

PHP 8.4 nightly

Operating System

Windows 11

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