mirror of
https://github.com/danog/ext-uv.git
synced 2024-12-03 09:57:59 +01:00
15 lines
405 B
Plaintext
15 lines
405 B
Plaintext
|
--TEST--
|
||
|
Check for fs_send_file
|
||
|
--FILE--
|
||
|
<?php
|
||
|
define("FIXTURE_PATH", dirname(__FILE__) . "/fixtures/hello.data");
|
||
|
|
||
|
uv_fs_open(uv_default_loop(), FIXTURE_PATH, UV::O_RDONLY, 0, function($read_fd){
|
||
|
$std_err = 1; // phpt doesn't catch stdout as uv_fs_sendfile uses stdout directly.
|
||
|
uv_fs_sendfile(uv_default_loop(),$std_err, $read_fd, 0, 6, function($result){
|
||
|
});
|
||
|
});
|
||
|
|
||
|
uv_run();
|
||
|
--EXPECT--
|
||
|
Hello
|