Commit Graph

608 Commits

Author SHA1 Message Date
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
Remi Collet
4a0ae96c3b honours --with-libdir build option 2016-11-01 18:38:14 +01:00
Bob Weinand
23962c3591 Merge pull request #21 from remicollet/issue-tests
add skipif section on 2 tests
2016-11-01 18:28:36 +01:00
Remi Collet
0a9ac7b898 add skipif section on 2 tests 2016-11-01 18:26:28 +01:00
Bob Weinand
d877d48a6d Thanks to Remi, a few package.xml fixes 2016-11-01 18:02:31 +01:00
Bob Weinand
ce784064c4 Ready for PECL 2016-11-01 17:31:16 +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
Bob Weinand
6b460eb14c Merge pull request #20 from remicollet/issue-arginfo
fix all build warnings
2016-10-29 19:03:27 +02:00
Remi Collet
7322bf61b8 fix all build warnings 2016-10-29 18:39:12 +02:00