mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
23 lines
266 B
PHP
23 lines
266 B
PHP
--TEST--
|
|
Bad uv_spawn must not segfault (issue #79)
|
|
--FILE--
|
|
<?php
|
|
$rt = uv_spawn(
|
|
uv_default_loop(),
|
|
'',
|
|
array(),
|
|
array(),
|
|
__DIR__,
|
|
array(),
|
|
static function () {
|
|
echo 'Child Process exited'.PHP_EOL;
|
|
}
|
|
);
|
|
|
|
var_dump($rt);
|
|
|
|
uv_run();
|
|
?>
|
|
--EXPECTF--
|
|
int(-%d)
|