ID:               34627
 Updated by:       [EMAIL PROTECTED]
 Reported By:      drewish at katherinehouse dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         Apache2 related
 Operating System: Windows XP / FreeBSD 5
 PHP Version:      5.0.5
-Assigned To:      
+Assigned To:      tony2001
 New Comment:

Assigned to the bogus boguser. tony2001: Please, if something isn't
really documented, reclassify. (and give a short explanation instead of
the magic bogusing)


Previous Comments:
------------------------------------------------------------------------

[2005-09-28 21:13:59] drewish at katherinehouse dot com

I apologize for reopening this but I've tried to find an explanation
for the strange (read buggy) behavoir using several of the support
resources you linked to with no luck. Everyone seems to think that
php://stdout and php://output should both act identically under Apache,
as they do under the CLI. 

If you're going to mark this as bogus again, please do me the favor of
a short explanation of where data sent to php://stdout under Apache
ends up.

------------------------------------------------------------------------

[2005-09-25 09:51:04] drewish at katherinehouse dot com

I forgot to link to http://php.net/manual/en/wrappers.php.php which
says php://stdout allow access to the output stream while php://output
allows you to write to the output buffer mechanism. Shouldn't stdout
and output be going to the same place?

------------------------------------------------------------------------

[2005-09-25 09:39:17] drewish at katherinehouse dot com

Why do 'php://output' and 'php://stdout' go to different places under
Apache but not the CLI?

------------------------------------------------------------------------

[2005-09-24 11:47:57] [EMAIL PROTECTED]

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.



------------------------------------------------------------------------

[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:
  [EMAIL PROTECTED]:/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

Reply via email to