mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
17 lines
279 B
Plaintext
17 lines
279 B
Plaintext
|
--TEST--
|
||
|
Check for #14
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$loop = uv_default_loop();
|
||
|
$filename ="does_not_exist.txt";
|
||
|
uv_fs_stat($loop, $filename, function ($result, $stat) {
|
||
|
echo $result . PHP_EOL;
|
||
|
if (is_null($stat)) {
|
||
|
echo "NULL" . PHP_EOL;
|
||
|
}
|
||
|
});
|
||
|
uv_run();
|
||
|
|
||
|
--EXPECT--
|
||
|
-1
|
||
|
NULL
|