Skip to content

PHP_OUTPUT_HANDLER_PROCESSED is only available as of PHP 8.4 #3384

@adazmy

Description

@adazmy

Description

While listing php constants, PHP_OUTPUT_HANDLER_PROCESSED is not defined.

Version:
PHP 8.3.6 (cli) (built: Apr 11 2024 20:23:19) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies

The following code:

<?php

echo PHP_OUTPUT_HANDLER_PROCESSED;

Resulted in this output:

Fatal error: Uncaught Error: Undefined constant "PHP_OUTPUT_HANDLER_PROCESSED" in /in/fa1o8:3
Stack trace:
#0 {main}
  thrown in /in/fa1o8 on line 3

Process exited with code 255.

But I expected this output instead:

// Constant value

PHP Version

Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7

Operating System

Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions