[php-src] Issue #19975: PHP 8.5.0RC1 the stream_isatty test failed when running the tests.
| From: | ArchMaster2024 | Date: | Fri, 26 Sep 2025 20:11:27 +0000 |
| Subject: | [php-src] Issue #19975: PHP 8.5.0RC1 the stream_isatty test failed when running the tests. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250921@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19975
Author: ArchMaster2024
### Description
The following code:
```php
require __DIR__.'/stream_isatty.inc';
testToStdErr();
<?php
```
Resulted in this output:
```
STDIN (constant): bool(false)
STDIN (fopen): bool(false)
STDIN (php://fd/0): bool(false)
STDOUT (constant): bool(false)
STDOUT (fopen): bool(false)
STDOUT (php://fd/1): bool(false)
STDERR (constant): bool(false)
STDERR (fopen): bool(false)
STDERR (php://fd/2): bool(false)
Invalid stream (php://temp): bool(false)
Invalid stream (php://input): bool(false)
Invalid stream (php://memory): bool(false)
File stream: bool(false)
```
But I expected this output instead:
```
STDIN (constant): bool(true)
STDIN (fopen): bool(true)
STDIN (php://fd/0): bool(true)
STDOUT (constant): bool(true)
STDOUT (fopen): bool(true)
STDOUT (php://fd/1): bool(true)
STDERR (constant): bool(false)
STDERR (fopen): bool(false)
STDERR (php://fd/2): bool(false)
Invalid stream (php://temp): bool(false)
Invalid stream (php://input): bool(false)
Invalid stream (php://memory): bool(false)
File stream: bool(false)
```
### PHP Version
```plain
PHP 8.5.0RC1 (cli) (built: Sep 26 2025 16:34:17) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.5.0RC1, Copyright (c) Zend Technologies
with Zend OPcache v8.5.0RC1, Copyright (c), by Zend Technologies
```
### Operating System
Debian GNU/Linux 12 (bookworm) x86_64 (This is a container)