Skip to content

Commit

Permalink
#51
Browse files Browse the repository at this point in the history
  • Loading branch information
antecedent committed May 3, 2017
1 parent 2baeeaf commit 5e4530a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CodeManipulation/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ public function url_stat($path, $flags)
{
$this->unwrap();
set_error_handler(function() {});
$result = stat($path);
try {
$result = stat($path);
} catch (\Exception $e) {
$result = null;
}
restore_error_handler();
$this->wrap();
if ($result) {
Expand Down

0 comments on commit 5e4530a

Please sign in to comment.