#34627 [Opn->Bgs]: fopen('php://stdout') / fputs() doesn't send output under Apache2 SAPI

From: Date: Sat, 24 Sep 2005 09:47:59 +0000
Subject: #34627 [Opn->Bgs]: fopen('php://stdout') / fputs() doesn't send output under Apache2 SAPI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85528@lists.php.net to get a copy of this message
ID: 34627 Updated by: tony2001@php.net Reported By: drewish at katherinehouse dot com -Status: Open +Status: Bogus Bug Type: Apache2 related Operating System: Windows XP / FreeBSD 5 PHP Version: 5.0.5 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2005-09-24 10:37:06] drewish at katherinehouse dot com Description: ------------ I'm trying to move some code that was written for the CLI to the web. It makes extensive use fprintf() and fputs() and under Apache2 it give no output. Reproduce code: --------------- <?php $fp = fopen('php://stdout', 'w'); if ($fp === false) { die('open failed.'); } print "You can see this with the CLI and Apache.\n"; fputs($fp, "This only shows up on the CLI...\n"); fclose($fp); ?> Expected result: ---------------- Under FreeBSD: amorton@multivac:/home/www/multivac> php phptest.php You can see this with the CLI and Apache. This only shows up on the CLI... Under Windows XP: D:\temp>php phptest.php You can see this with the CLI and Apache. This only shows up on the CLI... Actual result: -------------- Viewing the page using Apache2 and mod_php5: You can see this with the CLI and Apache. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34627&edit=1

« previous php.bugs (#85528) next »