Commit Graph

454 Commits

Author SHA1 Message Date
Bob Weinand
e4cb65e5e3 wtf, uv_fs_scandir()??? - Prevent walking the loop after dtor 2017-06-17 19:34:52 +02:00
Bob Weinand
20869861c8 Fix 7.2 build 2017-06-16 16:30:36 +02:00
Bob Weinand
a5cea676ea Do not warn when using closed handles with uv_is_active() 2017-05-16 17:48:34 +02:00
Bob Weinand
7982b64a14 Fully fix uv_async too
I am bad at copying over already fixed code, sigh...
2017-05-09 00:21:58 +02:00
Bob Weinand
836c0c68f5 Fix #43 - Add handling for uv pipes within UVStdio objects
Also some refcounting issues within uv_async* and uv_udp*
2017-05-09 00:13:00 +02:00
Bob Weinand
a2ab5c8296 Fix #44 - prepare 0.2.1 2017-05-08 12:10:59 +02:00
Bob Weinand
c38fbc92b3 Prepare v0.2.0 2017-05-07 22:39:24 +02:00
Bob Weinand
92bb903b1b Fix PHP 7.1 build and uv_queue_work() 2017-05-07 19:37:05 +02:00
Bob Weinand
a62782aead Fix PHP 7.0 and 7.1 builds 2017-05-07 19:20:49 +02:00
Bob Weinand
e8b3f8b5de Fix refcount upon polling error
libuv will then itself stop the polling and thus refcount needs to be in sync with that
2017-05-07 18:58:59 +02:00
Bob Weinand
942cb77e5e Fix uninitialized php_uv_loop_t * variables 2017-05-07 18:14:08 +02:00
Bob Weinand
7b345baef0 Fix compile with gcc 2017-05-07 13:25:59 +02:00
Bob Weinand
ad904731ba Use objects instead of resources as handle representation
This also adds proper get_gc handlers in order to resolve potenial cycles
2017-05-07 13:14:26 +02:00
Bob Weinand
2b5a298f82 Return the return value of uv_spawn if not zero
Fixes #38
2017-04-26 13:17:06 +02:00
Bob Weinand
db7ccff3cf Add support for POSIX FIFOs
Fixes #39
2017-04-26 13:01:40 +02:00
Bob Weinand
e451cd795c Revert (broken) support for php://temp, it points to a file, not to a stream 2017-04-26 12:06:16 +02:00
Bob Weinand
78236d11da Some stupid stdlibs define strcmp as a macro ... 2017-04-11 12:46:12 +02:00
Bob Weinand
325d6ff6b1 Fix leaking memory upon failed uv_write request 2017-04-11 12:32:58 +02:00
Bob Weinand
2e0a10b559 Fix Windows build
Fixes #34
2017-04-11 12:21:54 +02:00
Bob Weinand
158f959f94 Add uv_tcp_open() and uv_udp_open() 2017-04-11 12:06:22 +02:00
Bob Weinand
0d48aaf4cb Add support for php://temp streams
Fixes #35
2017-04-11 11:47:00 +02:00
Bob Weinand
5e40a438c4 Fix memory leaking for NULL callbacks
Fixes #37
2017-04-11 11:38:10 +02:00
Bob Weinand
a4036293d9 Fix leaking php_uv_t when its resource was closed before uv_close_cb invocation 2017-03-05 03:54:37 +01:00
Bob Weinand
e2cc81869e Fix crash caused by refcount decrement on temporary resource 2017-03-05 03:21:42 +01:00
Bob Weinand
f2cec338bd Prevent creation of useless resources and fix too high refcount of uv_fs_open() returned resources 2017-03-05 01:46:48 +01:00
Bob Weinand
51e48971dc Merge branch 'master' of https://github.com/Ezaki113/php-uv
Also fixup a few mistakes related to reference counting
2017-03-03 02:11:48 +01:00
Bob Weinand
84454561f3 Merge branch 'uv_pipe_open-error-handling' of https://github.com/Ezaki113/php-uv 2017-02-28 18:26:39 +01:00
Bob Weinand
e2a6bcddae Merge branch 'fix-memory-leak' of https://github.com/Ezaki113/php-uv
Also fix memory leaks in general when closing without previous explicit stop
2017-02-28 18:22:45 +01:00
Andrey Kostylev
2798970b49 garbage resource after uv_close 2017-02-24 18:27:24 +03:00
Andrey Kostylev
1f8fde011b uv_listen callback is not destroyed by gc anymore 2017-02-24 14:57:58 +03:00
Andrey Kostylev
16ee60d5bb uv_pipe_open returns errno or false 2017-02-21 23:57:52 +03:00
Andrey Kostylev
cd8a528523 fix uv_write2 2017-02-20 01:15:01 +03:00
Andrey Kostylev
1777abf3eb spaces -> tabs 2017-02-20 00:57:37 +03:00
Andrey Kostylev
68bebeefda uv_write memory leak 2017-02-20 00:44:54 +03:00
Andrey Kostylev
1139b895c9 seems it works 2017-02-19 22:06:31 +03:00
Bob Weinand
7882f1307d Prevent segfault after uv_loop_delete() call 2016-12-29 02:45:20 +01:00
Bob Weinand
5b0c341f8a Properly inform that the structure does not need to be cleaned again 2016-11-06 23:30:12 +01:00
Bob Weinand
b2c84429eb Fix bogus ref deletion 2016-11-04 18:25:23 +01:00
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