Closed csaoh closed 11 years ago
maybe i forget file checking or something. I'll take a look into this later.
Still have the issue, actually :/
@csaoh can you explain how to reproduce this issue?
<?php
$loop = uv_default_loop();
$filename ="does_not_exist.txt";
uv_fs_stat($loop, $filename, function ($result, $stat) {
var_dump($result);
var_dump($stat);
});
i checked this issue with above code and 105841efb6bac17acf783047a807dc0fff190768. but it can't reproduce.
I just did run
<?php
$loop = uv_default_loop();
$filename ="does_not_exist.txt";
uv_fs_stat($loop, $filename, function ($result, $stat) {
var_dump($result);
var_dump($stat);
});
uv_run();
and got
Segmentation fault: 11
I'm on MAC OS X, will try on ubuntu 32 and 64 bit right now.
On a Ubuntu x32 VM I get
Segmentation fault (core dumped)
okay, let me setup ubuntu box and check it soon.
nice !
This is my code:
here is the output:
If i try the same with a file that doesn't exist, here is my output: