From 91a081e3ec43302ca1df8d436e48c2a14d7c76b9 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Thu, 31 May 2018 15:19:54 +0300 Subject: psr7 support --- php-src/tests/stop.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 php-src/tests/stop.php (limited to 'php-src/tests/stop.php') diff --git a/php-src/tests/stop.php b/php-src/tests/stop.php new file mode 100644 index 00000000..caa485d6 --- /dev/null +++ b/php-src/tests/stop.php @@ -0,0 +1,25 @@ +receive($ctx)) { + try { + if ($used) { + // kill on second attempt + $rr->stop(); + continue; + } + + $used = true; + $rr->send((string)getmypid()); + } catch (\Throwable $e) { + $rr->error((string)$e); + } +} \ No newline at end of file -- cgit v1.2.3