mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
16 lines
300 B
Plaintext
16 lines
300 B
Plaintext
|
--TEST--
|
||
|
Check to make sure uv_loop_new can be used
|
||
|
--SKIPIF--
|
||
|
<?php if(!extension_loaded("uv")) print "skip"; ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$loop = uv_loop_new();
|
||
|
$async = uv_async_init($loop, function($async) {
|
||
|
echo "Hello";
|
||
|
uv_close($async);
|
||
|
});
|
||
|
uv_async_send($async);
|
||
|
uv_run($loop);
|
||
|
--EXPECT--
|
||
|
Hello
|