Bug #51304 [Ver->Nab]: php://stderr stream logs to global apache log file instead of virtual host file

From: Date: Thu, 03 Apr 2014 10:30:00 +0000
Subject: Bug #51304 [Ver->Nab]: php://stderr stream logs to global apache log file instead of virtual host file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185062@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=51304&edit=1

 ID:                 51304
 Updated by:         mike@php.net
 Reported by:        houdelou at hotmail dot com
 Summary:            php://stderr stream logs to global apache log file
                     instead of virtual host file
-Status:             Verified
+Status:             Not a bug
 Type:               Bug
 Package:            Output Control
 Operating System:   Ubuntu Server 9.04
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

I'm not convinced this actually is a bug.

STDERR is not necessarily related to the error_log. 

If INI's error_log is not set, then the SAPI module's log_message callback is executed.
That's why you see errors in the VHost's error_log for an unconfigured error_log with
log_errors=On.

Opening php://stderr just dup's STDERR_FILENO, which in the case of Apache httpd is redirected
to the main error_log.


Previous Comments:
------------------------------------------------------------------------
[2013-03-22 14:57:27] arpad@php.net

Replicated with original script in 5.5.0beta1

------------------------------------------------------------------------
[2013-02-05 14:16:43] mp at webfactory dot de

Still a problem in 5.3.21.

Can someone please re-open this bug? I'd like to provide all the feedback you need 
:)

------------------------------------------------------------------------
[2012-05-16 13:31:35] plb at webfactory dot de

This bug still exists.
Can be reproduced with ne code snippet of the initial posting in the following 
environments:

- Mac OSX 10.6.8, PHP 5.3.12
- Ubuntu 10.04 (Lucid Lynx), PHP 5.3.5-1ubuntu7.7

------------------------------------------------------------------------
[2012-02-26 08:12:28] stas@php.net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------
[2010-06-24 10:25:25] viatkine at gmail dot com

PHP 5.3.1 (cli) (built: Nov 19 2009 10:17:43)

Different php version and platform. Same problem..

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=51304


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=51304&edit=1


Thread (8 messages)

« previous php.bugs (#185062) next »