From 5e0cd202cb09cfabc97afc74aeb8578e94981172 Mon Sep 17 00:00:00 2001 From: Andrey Kostylev Date: Sun, 19 Feb 2017 04:16:49 +0300 Subject: [PATCH 1/2] uv_loop_delete segfault test case --- tests/002-uv_loop_delete_segfault.phpt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/002-uv_loop_delete_segfault.phpt diff --git a/tests/002-uv_loop_delete_segfault.phpt b/tests/002-uv_loop_delete_segfault.phpt new file mode 100644 index 0000000..445d18d --- /dev/null +++ b/tests/002-uv_loop_delete_segfault.phpt @@ -0,0 +1,7 @@ +--TEST-- +Segmentation fault after uv_loop_delete +--FILE-- + Date: Sun, 19 Feb 2017 04:17:23 +0300 Subject: [PATCH 2/2] fix broken test --- tests/600-pipe_bind.phpt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/600-pipe_bind.phpt b/tests/600-pipe_bind.phpt index 059485b..cd6d2e3 100644 --- a/tests/600-pipe_bind.phpt +++ b/tests/600-pipe_bind.phpt @@ -11,6 +11,10 @@ uv_listen($a, 8192, function($stream) { $pipe = uv_pipe_init(uv_default_loop(), 0); uv_accept($stream, $pipe); uv_read_start($pipe,function($pipe, $nread, $buffer) use ($stream) { + if ($nread === \UV::EOF) { + return; + } + echo $buffer; uv_read_stop($pipe); uv_close($stream, function() {