cvs: php-src /ext/standard streamsfuncs.c
| From: | Wez Furlong | Date: | Thu, 23 Dec 2004 05:56:50 +0000 |
| Subject: | cvs: php-src /ext/standard streamsfuncs.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-29636@lists.php.net to get a copy of this message | ||
wez Thu Dec 23 00:56:50 2004 EDT
Modified files:
/php-src/ext/standard streamsfuncs.c
Log:
don't crash...
http://cvs.php.net/diff.php/php-src/ext/standard/streamsfuncs.c?r1=1.46&r2=1.47&ty=u
Index: php-src/ext/standard/streamsfuncs.c
diff -u php-src/ext/standard/streamsfuncs.c:1.46 php-src/ext/standard/streamsfuncs.c:1.47
--- php-src/ext/standard/streamsfuncs.c:1.46 Mon Dec 13 08:52:01 2004
+++ php-src/ext/standard/streamsfuncs.c Thu Dec 23 00:56:50 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streamsfuncs.c,v 1.46 2004/12/13 13:52:01 wez Exp $ */
+/* $Id: streamsfuncs.c,v 1.47 2004/12/23 05:56:50 wez Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -250,7 +250,7 @@
if (peername) {
zval_dtor(peername);
- ZVAL_STRING(peername, NULL, 0);
+ ZVAL_STRING(peername, "", 0);
}
if (0 == php_stream_xport_accept(stream, &clistream,