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

 ID:               51304
 Comment by:       viatkine at gmail dot com
 Reported by:      houdelou at hotmail dot com
 Summary:          php://stderr stream logs to global apache log file
                   instead of virtual host file
 Status:           Feedback
 Type:             Bug
 Package:          Output Control
 Operating System: Ubuntu Server 9.04
 PHP Version:      Irrelevant

 New Comment:

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



Different php version and platform. Same problem..


Previous Comments:
------------------------------------------------------------------------
[2010-05-19 14:42:28] [email protected]

Please try using this snapshot:

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

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



------------------------------------------------------------------------
[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

Reply via email to