iliaa Wed Jan 8 22:33:44 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/standard fsock.c Log: MFH Index: php4/ext/standard/fsock.c diff -u php4/ext/standard/fsock.c:1.106.2.1 php4/ext/standard/fsock.c:1.106.2.2 --- php4/ext/standard/fsock.c:1.106.2.1 Tue Dec 31 11:35:28 2002 +++ php4/ext/standard/fsock.c Wed Jan 8 22:33:44 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fsock.c,v 1.106.2.1 2002/12/31 16:35:28 sebastian Exp $ */ +/* $Id: fsock.c,v 1.106.2.2 2003/01/09 03:33:44 iliaa Exp $ */ /* converted to PHP Streams and moved much code to main/network.c [wez] */ @@ -178,7 +178,7 @@ } if (zerrstr) { zval_dtor(zerrstr); - ZVAL_STRING(zerrno, "", 1); + ZVAL_STRING(zerrstr, "", 1); } if (port > 0) { /* connect to a host */ @@ -261,6 +261,7 @@ char *buf = php_socket_strerror(err, NULL, 0); /* no need to dup; we would only need to efree buf anyway */ + zval_dtor(zerrstr); ZVAL_STRING(zerrstr, buf, 0); } RETURN_FALSE;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php