Bob Weinand
30c34d72a3
pthread_rwlock requires the lock being unlocked as often as it has been acquired
...
tests/700-uv_rwlock.phpt throws a notice inside resource dtor, which causes a memory leak in PHP; setting track_errors=0 temporarily there for having the test pass here.
2016-11-01 16:32:05 +01:00
Bob Weinand
567ca4f30b
Fix #18 remove all traces of http parser
2016-10-30 00:57:41 +02:00
Bob Weinand
b47c511163
Fix uv_queue_work
2016-10-30 00:49:57 +02:00
Remi Collet
7322bf61b8
fix all build warnings
2016-10-29 18:39:12 +02:00
Bob Weinand
f694707cfe
Fix non-repeating timers leaking after successful completion
2016-10-29 17:00:57 +02:00
Bob Weinand
71aa70aee1
Fix uv build with ext/sockets being shared (See also #14 )
2016-10-29 17:00:50 +02:00
Bob Weinand
83c19d3aac
Merge pull request #17 from remicollet/issue-mac
...
use normalized macro name
2016-10-28 14:23:26 +02:00
Remi Collet
7f6df50bfd
use normalized macro name
2016-10-28 14:20:19 +02:00
Remi Collet
a2de77df18
fix uv_inet_ntop usage (+ segfault in tests/200-ares_getaddrinfo.phpt
2016-10-28 14:00:37 +02:00
Chris Wright
36ecc7d92a
Make uv_poll_init_socket() alias of uv_poll_init()
...
On *nix platforms the two underlying calls are identical. On Windows
we always need uv_poll_init_socket(), this can be done at compile time.
2016-10-26 18:01:41 +01:00
Bob Weinand
bd1e4a9b45
Fix early freeing of non closeable uv handles
2016-10-01 10:51:09 +01:00
Bob Weinand
120998fba5
Fix more refcounting and closing issues
2016-05-12 07:47:29 +02:00
Bob Weinand
bd9a7d7e81
Fix refcounting and freeing
2016-05-11 05:13:16 +02:00
Bob Weinand
87f9995f34
Fix lengths when reading files
2016-02-08 01:31:40 +01:00
Bob Weinand
e5a1402674
Fix comparison
2015-11-16 14:49:42 +01:00
Steve Rhoades
d173e68437
fixes #4 need to check for valid epoll fd before doing any stream casting.
2015-11-08 21:19:50 -08:00
Bob Weinand
32ace95b53
Always auto-close handles (do not risk an assertion failure)
2015-08-18 03:46:26 +02:00
Bob Weinand
389e5c2f25
Fix segfault upon invalid scandir
2015-08-08 16:53:18 +02:00
Bob Weinand
8c0953ba85
Replace various zval_dtor()s by zval_ptr_dtor()
...
This caused crashes when the passed variable had a refcount > 1 when moved out of callback scope
2015-08-07 18:25:29 +02:00
Daniel Lowrey
f04e8740d8
Add missing signal stream cast
2015-07-30 23:09:35 -04:00
Bob Weinand
578dda8450
Minor bug fixes & adapt for recent resource API changes
2015-02-11 01:30:18 +01:00
Daniel Lowrey
5554a21485
Fix undefined return
2015-02-03 01:29:17 -05:00
Daniel Lowrey
5223a36b25
Fix polling for STDIO and crypto socket handles
2015-02-03 01:15:30 -05:00
Bob Weinand
25fa65eebe
Make ext/sockets optional
2015-01-23 22:56:57 +01:00
Daniel Lowrey
544b69442c
Fix broken uv_fs_read() functionality
2015-01-22 16:06:22 -05:00
Bob Weinand
7bc813596d
Fixed missing refcount increment
2015-01-21 17:04:49 +01:00
Bob Weinand
f5b1e9d14e
Fix accidental regression in checking for invalid resource
2015-01-21 16:16:26 +01:00
Bob Weinand
74096ae99c
Fix buffer overflow
2015-01-18 18:51:49 +01:00
Bob Weinand
4751e80a65
Fix various bugs...
2015-01-18 17:24:13 +01:00
Bob Weinand
4332fe7aa1
Current, broken PHP 7 port...
2015-01-18 02:58:40 +01:00
Steve Rhoades
605a20a568
merging offset changes from PR #60
2014-11-23 18:02:03 +00:00
Steve Rhoades
42361ad0c5
fix segfault issue caused by uv_unref deleting resource, resource is freed by destruct_uv
2014-11-17 16:48:57 +00:00
Steve Rhoades
2408f16a7a
Fix issue #36 , Fix issue #56 , uv_poll no longer allows plainfiles or php related streams resolving a SIGABRT as epoll doesn't support those stream types
2014-11-14 02:01:07 +00:00
Steve Rhoades
dd9aac9abb
Fix Issue #59 segfault on null passed as handle to uv_stdio_new
2014-11-13 02:20:21 +00:00
Steve Rhoades
73a295abc9
cleanup uv_fs_scandir
2014-11-12 15:52:08 +00:00
Steve Rhoades
459b61462a
fix uv_fs_scandir
2014-11-12 15:49:12 +00:00
Daniel Lowrey
a25595f43a
Add $offset param to uv_fs_read() to allow seeking on open handles
...
This change modifies the uv_fs_read() function signature slightly by adding
a new $offset parameter. This allows the same file handle to be reused for
multiple reads. Previously the only way to access a section of a file that
had already been read was to open a new handle.
Old:
uv_fs_read(resoruce $loop, zval $fd, long $length, callable $callback)
New:
uv_fs_read(resoruce $loop, zval $fd, long $offest, long $length, callable $callback)
This change represents a minor BC break for existing code using uv_fs_read().
2014-11-11 10:47:44 -05:00
Steve Rhoades
59f74ea017
fix issue with uv_loop_new based on 1.0 migration guide, add additional tests
2014-11-10 04:30:57 +00:00
Steve Rhoades
1ea6c5aca4
update for libuv 1.0.0rc2, updated tests for api changes
2014-11-07 21:42:17 +00:00
Steve Rhoades
84d7e09ce6
saving changes, still 3 failing tests
2014-11-07 18:40:12 +00:00
Tjerk Meesters
bdaf5a0bb8
Enabled http parser again
2014-08-21 08:31:25 +08:00
Tjerk Meesters
39a7fe3c7e
Fixed off-by-one buffer issue in uv_exepath()
2014-08-20 22:10:40 +08:00
Tjerk Meesters
91ee8f491a
Fixed off-by-one overflow, updated test case
2014-08-20 22:10:40 +08:00
Tjerk Meesters
90f12cb77f
Moving parser functionality in a separate file (part 1)
2014-08-20 18:44:55 +08:00
Daniel Lowrey
cf36261e3e
Fix accidental chmod changes
2014-06-11 19:09:32 -04:00
Daniel Lowrey
79853fb161
Don't crash if work queue function fatals in thread
2014-06-10 10:58:34 -04:00
Daniel Lowrey
1fbd585948
Fix copy/paste error message typo
2014-06-10 10:58:34 -04:00
Daniel Lowrey
1e32c24608
Add signal handling support
...
- resource uv_signal_init([resource $loop])
- void uv_signal_start(resource $sigHandle, callable $onSignal, int $signal)
- void uv_signal_stop($signalResource)
Example:
<?php
$sigHandle = uv_signal_init();
$onSigint = function($sigHandle, $sigNum) {
printf("Caught signal: %d\n", $sigNum);
uv_signal_stop($sigHandle);
uv_stop();
};
uv_signal_start($sigHandle, $onSigint, UV::SIGINT);
uv_run();
New signal constants (these vary by OS):
<?php
$refl = new ReflectionClass('UV');
print_r($refl->getConstants());
2014-06-10 10:56:32 -04:00
Daniel Lowrey
096eedc215
Add uv_stop()
2014-06-10 09:11:38 -04:00
Shuhei Tanuma
2b04d12970
[http parser] add http version
2014-02-27 16:48:53 +09:00