mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
Fixed missing refcount increment
This commit is contained in:
parent
f5b1e9d14e
commit
7bc813596d
2
php_uv.c
2
php_uv.c
@ -173,7 +173,7 @@
|
||||
#define PHP_UV_LOCK_MUTEX_P(resource) &resource->lock.mutex
|
||||
#define PHP_UV_LOCK_SEM_P(resource) &resource->lock.semaphore
|
||||
|
||||
#define PHP_UV_FD_TO_ZVAL(zv, fd) { php_stream *_stream = php_stream_fopen_from_fd(fd, "w+", NULL); zval *_z = (zv); php_stream_to_zval(_stream, _z); }
|
||||
#define PHP_UV_FD_TO_ZVAL(zv, fd) { php_stream *_stream = php_stream_fopen_from_fd(fd, "w+", NULL); zval *_z = (zv); php_stream_to_zval(_stream, _z); Z_ADDREF_P(_z); }
|
||||
|
||||
#if PHP_UV_DEBUG>=1
|
||||
#define PHP_UV_DEBUG_PRINT(format, ...) fprintf(stderr, format, ## __VA_ARGS__)
|
||||
|
@ -5,7 +5,7 @@ Check for fs_send_file
|
||||
define("FIXTURE_PATH", dirname(__FILE__) . "/fixtures/hello.data");
|
||||
|
||||
uv_fs_open(uv_default_loop(), FIXTURE_PATH, UV::O_RDONLY, 0, function($read_fd) {
|
||||
$std_err = STDERR; // phpt doesn't catch stdout as uv_fs_sendfile uses stdout directly.
|
||||
$std_err = STDOUT; // phpt doesn't catch stdout as uv_fs_sendfile uses stdout directly.
|
||||
uv_fs_sendfile(uv_default_loop(), $std_err, $read_fd, 0, 6, function($result) { });
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user