]> granicus.if.org Git - php/commitdiff
Fix Bug #25597 pfsockopen crashes when recycling a persistent list entry.
authorWez Furlong <wez@php.net>
Sat, 20 Dec 2003 20:24:36 +0000 (20:24 +0000)
committerWez Furlong <wez@php.net>
Sat, 20 Dec 2003 20:24:36 +0000 (20:24 +0000)
ext/standard/fsock.c

index 420be9aa07063c6dcecca7f9b673083751178ace..b135798ca7be47a82c88c62493da77a014ca4ed1 100644 (file)
@@ -164,7 +164,7 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent)
                                        php_stream_to_zval(stream, return_value);
                                } else {
                                        /* it died; we need to replace it */
-                                       php_stream_close(stream);
+                                       php_stream_pclose(stream);
                                        break;
                                }