]> granicus.if.org Git - php/commitdiff
MFH: don't crash
authorWez Furlong <wez@php.net>
Thu, 23 Dec 2004 06:02:54 +0000 (06:02 +0000)
committerWez Furlong <wez@php.net>
Thu, 23 Dec 2004 06:02:54 +0000 (06:02 +0000)
ext/standard/streamsfuncs.c

index 520cab7b94793cb7ee84df31184242d866f9e543..6890842a61da36eadb5b5352df11b90953e0e596 100644 (file)
@@ -217,7 +217,7 @@ PHP_FUNCTION(stream_socket_accept)
 
        if (peername) {
                zval_dtor(peername);
-               ZVAL_STRING(peername, NULL, 0);
+               ZVAL_STRING(peername, "", 0);
        }
 
        if (0 == php_stream_xport_accept(stream, &clistream,