]> granicus.if.org Git - php/commitdiff
Fixed GC
authorDmitry Stogov <dmitry@zend.com>
Wed, 9 Apr 2014 11:26:45 +0000 (15:26 +0400)
committerDmitry Stogov <dmitry@zend.com>
Wed, 9 Apr 2014 11:26:45 +0000 (15:26 +0400)
ext/standard/streamsfuncs.c

index 6da9a008f53103d5e74434142662ce28a0291872..4b1411c7b70c0305e5b7b995fd1c6dfd372543d8 100644 (file)
@@ -702,6 +702,7 @@ static int stream_array_from_fd_set(zval *stream_array, fd_set *fds TSRMLS_DC)
 
        /* destroy old array and add new one */
        zend_hash_destroy(Z_ARRVAL_P(stream_array));
+       GC_REMOVE_FROM_BUFFER(Z_ARR_P(stream_array));
        efree(Z_ARR_P(stream_array));
 
        zend_hash_internal_pointer_reset(Z_ARRVAL(new_array));