Re: cvs: php-src(PHP_5_0) /ext/standard streamsfuncs.c
| From: | Derick Rethans | Date: | Sat, 15 Jan 2005 00:09:51 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_0) /ext/standard streamsfuncs.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-29893@lists.php.net to get a copy of this message | ||
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