Commit Graph

618 Commits

Author SHA1 Message Date
Bob Weinand
49fd695672 Fix #42 - Windows build error (again) 2017-05-13 23:23:59 +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
102b22bafe Fix ordering in fs_stat test
There is no guarantee that the one fs_stat callback will be invoked before the other
2017-04-11 12:39:42 +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
2c384371bf Prepare v0.1.2 2017-03-06 13:28:35 +01: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
0a48764b9f stdout ofc 2017-02-20 23:12:06 +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
cd27758748 fix uv_write memory leak test 2017-02-20 00:19:49 +03:00
Andrey Kostylev
3b0edcc5cc uv_write memory leak test 2017-02-20 00:14:54 +03:00
Andrey Kostylev
1139b895c9 seems it works 2017-02-19 22:06:31 +03:00
Bob Weinand
3815766985 Merge pull request #26 from Ezaki113/master
Fix broken test and add missing test
2017-02-19 12:25:44 +01:00
Bob Weinand
0778fc2fc1 Merge pull request #27 from Ezaki113/travis-php71
Travis php 7.1 target
2017-02-19 12:24:21 +01:00
Andrey Kostylev
a877637085 travis php71 2017-02-19 04:25:15 +03:00
Andrey Kostylev
1e8cf368e8 fix broken test 2017-02-19 04:17:23 +03:00
Andrey Kostylev
5e0cd202cb uv_loop_delete segfault test case 2017-02-19 04:16:49 +03:00
Bob Weinand
7882f1307d Prevent segfault after uv_loop_delete() call 2016-12-29 02:45:20 +01:00
Bob Weinand
5b47ac612f Prepare release 0.1.1 2016-11-14 13:31:53 +01:00
Bob Weinand
350d91e47a Merge branch 'issue-pkgconfig' of https://github.com/remicollet/php-uv 2016-11-14 13:21:25 +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
Remi Collet
2082929a82 use pkg-config when available 2016-11-01 19:03:52 +01:00
Bob Weinand
17619edebf Merge pull request #22 from remicollet/issue-libdir
honours --with-libdir build option
2016-11-01 18:40:26 +01:00