Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chopins committed Mar 9, 2020
1 parent d923dfe commit b2b6f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Epoll.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function getFdno($resource, $type): int
}

$api = new FFIExtend;
$stream = $api->phpVar($resource)->ptr;
$stream = $api->zval($resource)->ptr;
$fd = self::$ffi->cast('php_stream', $stream)->abstract;
if($type === self::RES_TYPE_FILE) {
return self::$ffi->cast('php_stdio_stream_data', $fd)->fd;
Expand Down

0 comments on commit b2b6f12

Please sign in to comment.