On Fri, 14 Jan 2005, Dmitry Stogov wrote:

> dmitry                Fri Jan 14 03:51:43 2005 EDT
>
>   Modified files:              (Branch: PHP_5_0)
>     /php-src/ext/standard     streamsfuncs.c
>   Log:
>   Fixed SIGSEGV with ext/standard/tests/network/tcp4loop.phpt and 
> ext/standard/tests/network/unixloop.phpt
>
>
> http://cvs.php.net/diff.php/php-src/ext/standard/streamsfuncs.c?r1=1.35.2.8&r2=1.35.2.9&ty=u
> Index: php-src/ext/standard/streamsfuncs.c
> diff -u php-src/ext/standard/streamsfuncs.c:1.35.2.8 
> php-src/ext/standard/streamsfuncs.c:1.35.2.9
> --- php-src/ext/standard/streamsfuncs.c:1.35.2.8      Tue Jan  4 10:31:34 2005
> +++ php-src/ext/standard/streamsfuncs.c       Fri Jan 14 03:51:43 2005
> @@ -17,7 +17,7 @@
>    +----------------------------------------------------------------------+
>  */
>
> -/* $Id: streamsfuncs.c,v 1.35.2.8 2005/01/04 15:31:34 wez Exp $ */
> +/* $Id: streamsfuncs.c,v 1.35.2.9 2005/01/14 08:51:43 dmitry Exp $ */
>
>  #include "php.h"
>  #include "php_globals.h"
> @@ -227,7 +227,7 @@
>                               &tv, &errstr
>                               TSRMLS_CC) && clistream) {
>
> -             Z_TYPE_P(peername) = IS_STRING;
> +             if (peername) {Z_TYPE_P(peername) = IS_STRING;}

Please adhere to the coding standards:

if (peername) {
        Z_TYPE_P(peername) = IS_STRING;
}

regards,
Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

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

Reply via email to