Fixed missing refcount increment

This commit is contained in:
Bob Weinand 2015-01-21 17:04:49 +01:00
parent f5b1e9d14e
commit 7bc813596d
2 changed files with 2 additions and 2 deletions

View File

@ -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__)

View File

@ -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) { });
});