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

From: Date: Wed, 19 May 2010 12:42:28 +0000
Subject: Bug #51304 [Opn->Fbk]: 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-150600@lists.php.net to get a copy of this message
Edit report at http://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:           Open
+Status:           Feedback
 Type:             Bug
 Package:          Output Control
 Operating System: Ubuntu Server 9.04
 PHP Version:      Irrelevant

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------
[2010-03-15 22:24:56] houdelou at hotmail dot com

Description:
------------
PHP 5.2.6-3ubuntu4.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Jan  6
2010 22:25:33)

/* This logs to global apache error_log file. */
$log = fopen("php://stderr", "a"); 
fwrite($log, "test message"); 
fclose($log);

/* This logs to virtual host error_log file */
trigger_error("test message");

php.ini settings :
log_errors = On
No value for error_log. It is commented out.



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



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


Thread (8 messages)

« previous php.bugs (#150600) next »