1--TEST--
2Bad uv_spawn must not segfault (issue #79)
3--FILE--
4<?php
5$rt = uv_spawn(
6	uv_default_loop(),
7	'',
8	array(),
9	array(),
10	__DIR__,
11	array(),
12	static function () {
13		echo 'Child Process exited'.PHP_EOL;
14	}
15);
16
17var_dump($rt);
18
19uv_run();
20?>
21--EXPECTF--
22int(-%d)
23