Re: cvs: php-src(PHP_5_3) /sapi/litespeed lsapilib.c
| From: | Kalle Sommer Nielsen | Date: | Fri, 27 Feb 2009 23:53:57 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_3) /sapi/litespeed lsapilib.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-56390@lists.php.net to get a copy of this message | ||
Hi
2009/2/28 George Wang <gwang@php.net>:
> gwang Fri Feb 27 23:33:01 2009 UTC
>
> Modified files: (Branch: PHP_5_3)
> /php-src/sapi/litespeed lsapilib.c
> Log:
> make STDOUT function as STDERR, in case any module call print()
>
>
> http://cvs.php.net/viewvc.cgi/php-src/sapi/litespeed/lsapilib.c?r1=1.5.2.5&r2=1.5.2.6&diff_format=u
> Index: php-src/sapi/litespeed/lsapilib.c
> diff -u php-src/sapi/litespeed/lsapilib.c:1.5.2.5 php-src/sapi/litespeed/lsapilib.c:1.5.2.6
> --- php-src/sapi/litespeed/lsapilib.c:1.5.2.5 Sun Sep 21 02:38:32 2008
> +++ php-src/sapi/litespeed/lsapilib.c Fri Feb 27 23:33:01 2009
> @@ -16,7 +16,7 @@
> +----------------------------------------------------------------------+
> */
>
> -/* $Id: lsapilib.c,v 1.5.2.5 2008/09/21 02:38:32 gwang Exp $ */
> +/* $Id: lsapilib.c,v 1.5.2.6 2009/02/27 23:33:01 gwang Exp $ */
>
> /*
> Copyright (c) 2007, Lite Speed Technologies Inc.
> @@ -581,6 +581,9 @@
> #if defined(SIGXFSZ) && defined(SIG_IGN)
> signal(SIGXFSZ, SIG_IGN);
> #endif
> + /* let STDOUT function as STDERR,
> + just in case writing to STDOUT directly */
> + dup2( 2, 1 );
>
> if ( LSAPI_InitRequest( &g_req, LSAPI_SOCK_FILENO ) == -1 ) {
> return -1;
>
Shouldn't this change not be MFB to HEAD?
--
Kalle Sommer Nielsen
kalle@php.net