Skip to content
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

PHP_OUTPUT_HANDLER_PROCESSED is only available as of PHP 8.4 #3384

Closed
adazmy opened this issue May 14, 2024 · 4 comments · Fixed by #3587
Closed

PHP_OUTPUT_HANDLER_PROCESSED is only available as of PHP 8.4 #3384

adazmy opened this issue May 14, 2024 · 4 comments · Fixed by #3587
Labels
bug Documentation contains incorrect information good first issue Good for newcomers Status: Verified

Comments

@adazmy
Copy link

adazmy commented May 14, 2024

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

@adazmy adazmy added bug Documentation contains incorrect information Status: Needs Triage labels May 14, 2024
@iluuu1994
Copy link
Member

This constant was only added in PHP 8.4. See php/php-src#13019.

@adazmy
Copy link
Author

adazmy commented May 14, 2024

Thank you.

Not really obvious cause i was still getting a 9 value on PHP 8.3.6 (not an old value nor an error) and no constant to check against.

Also, the documentation already mention the constant with no version note.

@iluuu1994
Copy link
Member

@adazmy Yeah, that's not optimal. The docs should at least mention when this was added. /cc @Girgias

@iluuu1994 iluuu1994 transferred this issue from php/php-src May 14, 2024
@Girgias
Copy link
Member

Girgias commented May 15, 2024

Correct, this is a doc-bug.

@Girgias Girgias changed the title PHP_OUTPUT_HANDLER_PROCESSED is not defined PHP_OUTPUT_HANDLER_PROCESSED is only available as of PHP 8.4 May 15, 2024
haszi pushed a commit to haszi/php-doc-en that referenced this issue Jul 20, 2024
@haszi haszi mentioned this issue Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Documentation contains incorrect information good first issue Good for newcomers Status: Verified
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants