Commit Graph

467 Commits

Author SHA1 Message Date
Remi Collet
07e75b9b70 [-Wincompatible-pointer-types] 2019-04-29 12:37:59 +02:00
Bob Weinand
99fbf65273 Fix build on php master 2019-04-28 13:44:03 +02:00
Bob Weinand
5a851173a3 Fix PHP-7.4+ build 2019-04-28 12:50:24 +02:00
Bob Weinand
1cb0668a63 Fix windows build 2019-04-28 12:41:36 +02:00
Bob Weinand
bb75025792 Actually, fix zpp usage only on PHP 7.4+ 2019-01-24 13:40:20 +01:00
Bob Weinand
b9f8b64383 Fix zpp usage for PHP >= 7.3.2 2019-01-24 13:38:03 +01:00
Bob Weinand
a983eb17b6 Rename link to nlink in stat to mirror stat() 2018-11-12 10:47:44 +01:00
Bob Weinand
72aa710358 Fix uv_fs_scandir returning 0 as status instead of true on empty directory 2018-11-02 10:46:54 +01:00
Bob Weinand
d3433a1875 Fix ZTS build 2018-07-08 09:07:54 +02:00
Bob Weinand
fc685d1cb5 Fix build for newest php-src master 2018-02-28 02:51:00 +01:00
Joel Wurtz
2ba4d96379
Remove dependency on PHP version for GC_ADDREF macro 2017-12-22 21:56:25 +01:00
Bob Weinand
880d84cd83 PHP 7.3 compatibility 2017-10-30 14:37:56 +01:00
Bob Weinand
79d8aaa0bd Fix #50: bad fsevent example 2017-08-21 08:54:34 -04:00
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