test: fix test case for uv_spawn

This commit is contained in:
Shuhei Tanuma 2012-07-22 22:11:22 +09:00
parent 0a2b0751c1
commit 4dd2ed56fa

View File

@ -12,7 +12,7 @@ $stdio[] = uv_stdio_new($in, UV::CREATE_PIPE | UV::READABLE_PIPE);
$stdio[] = uv_stdio_new($out, UV::CREATE_PIPE | UV::WRITABLE_PIPE);
$flags = 0;
uv_spawn(uv_default_loop(), "php", array('-r','echo "WORLD";'), $stdio, "/usr/bin/",
uv_spawn(uv_default_loop(), "php", array('-r','echo "WORLD";'), $stdio, dirname(uv_exepath()),
array("key"=>"hello"),
function($process, $stat, $signal){
uv_close($process,function(){});