Skip to content

Commit 4edefc1

Browse files
committed
poll: fix missing stream addref or return from getStream
1 parent 7d90473 commit 4edefc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/poll.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ PHP_METHOD(StreamPollHandle, getStream)
279279
RETURN_NULL();
280280
}
281281

282+
GC_ADDREF(data->stream->res);
282283
php_stream_to_zval(data->stream, return_value);
283284
}
284285

0 commit comments

Comments
 (0)