[php-src] Issue #8835: Redirecting STDOUT to a file no longer works in php8.x ?

From: Date: Tue, 21 Jun 2022 05:08:25 +0000
Subject: [php-src] Issue #8835: Redirecting STDOUT to a file no longer works in php8.x ?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241774@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8835 Author: retry-the-user ### Description This used to work in php7.x at least ```php <?php fclose(STDOUT); $STDOUT = fopen('/tmp/stdout.log', 'wb'); echo "test\n"; ``` and you'd find "test" in the stdout.log file. But this doesn't work anymore I guess. Is there a new way to redirect STDOUT to somewhere else? Reference: phil_php at zieaon dot com 's comment from the page: https://www.php.net/manual/en/features.commandline.io-streams.php ### PHP Version PHP 8.1.7 ### Operating System _No response_

« previous php.bugs (#241774) next »