fat                                      Tue, 16 Nov 2010 22:53:47 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=305419

Log:
- fix (log with level < WARNING before daemonizing were not written to 
/dev/stderr)

Changed paths:
    U   php/php-src/branches/PHP_5_3/sapi/fpm/fpm/zlog.c
    U   php/php-src/trunk/sapi/fpm/fpm/zlog.c

Modified: php/php-src/branches/PHP_5_3/sapi/fpm/fpm/zlog.c
===================================================================
--- php/php-src/branches/PHP_5_3/sapi/fpm/fpm/zlog.c    2010-11-16 22:16:44 UTC 
(rev 305418)
+++ php/php-src/branches/PHP_5_3/sapi/fpm/fpm/zlog.c    2010-11-16 22:53:47 UTC 
(rev 305419)
@@ -121,7 +121,7 @@

        buf[len++] = '\n';
        write(zlog_fd > -1 ? zlog_fd : STDERR_FILENO, buf, len);
-       if (zlog_fd != STDERR_FILENO && zlog_fd > -1 && !launched && (flags & 
ZLOG_LEVEL_MASK) >= ZLOG_WARNING) {
+       if (zlog_fd != STDERR_FILENO && zlog_fd > -1 && !launched && (flags & 
ZLOG_LEVEL_MASK) >= ZLOG_NOTICE) {
                write(STDERR_FILENO, buf, len);
        }
 }

Modified: php/php-src/trunk/sapi/fpm/fpm/zlog.c
===================================================================
--- php/php-src/trunk/sapi/fpm/fpm/zlog.c       2010-11-16 22:16:44 UTC (rev 
305418)
+++ php/php-src/trunk/sapi/fpm/fpm/zlog.c       2010-11-16 22:53:47 UTC (rev 
305419)
@@ -121,7 +121,7 @@

        buf[len++] = '\n';
        write(zlog_fd > -1 ? zlog_fd : STDERR_FILENO, buf, len);
-       if (zlog_fd != STDERR_FILENO && zlog_fd > -1 && !launched && (flags & 
ZLOG_LEVEL_MASK) >= ZLOG_WARNING) {
+       if (zlog_fd != STDERR_FILENO && zlog_fd > -1 && !launched && (flags & 
ZLOG_LEVEL_MASK) >= ZLOG_NOTICE) {
                write(STDERR_FILENO, buf, len);
        }
 }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to