--TEST-- Check for uv_spawn --FILE-- dirname(uv_exepath()), "pipes" => array( $in, $out, ), "env" => array( "KEY" => "VALUE", "HELLO" => "WORLD", ) ),function($process, $stat, $signal) use ($out){ uv_close($process,function(){ }); }); uv_read_start($out, function($out, $nread, $buffer){ echo $buffer . PHP_EOL; uv_close($out,function(){}); }); uv_run(); --EXPECT-- HELLO WORLD