Commit Graph

494 Commits

Author SHA1 Message Date
Aaron Piotrowski
5d17a6fdfd
Update file header 2023-06-17 09:42:28 -05:00
Aaron Piotrowski
3c89bc46a5
Free loop handle only when object freed 2021-11-11 18:51:38 -06:00
Cees-Jan Kiewiet
35728fba67
Only use zend_class_serialize_deny and zend_class_unserialize_deny in PHP versions before 8.1 (#101)
Refs: https://github.com/amphp/ext-uv/issues/100
2021-08-19 09:54:25 -05:00
Niklas Keller
67f261f3a1 Fix argument count for uv_fs_scandir 2021-06-21 22:09:49 +02:00
Levi Morrison
1b9e636f64 Fix some copy-pasta
I strongly suspect this is supposed to look for `socket_ce` followed by `_socket_ce`, not the same symbol twice.

I haven't hit an issue or anything; this is just by looking at all the existing `DL_FETCH_SYMBOL` patterns I see.
2021-03-17 20:38:35 +01:00
Bob Weinand
f7d052a48b Use weakly linked symbol for socket resource / ce (Fixes #84) 2020-12-29 04:38:03 +01:00
cdosoftei
444acfb963 fixes bwoebi/php-uv#85 (arginfo) 2020-09-14 11:50:02 +02:00
Bob Weinand
afe8688128 Fix PHP 8 build 2020-08-15 21:02:08 +02:00
cdosoftei
cae4ccb856 php: discard no_separation for php<8 only 2020-08-12 16:21:36 +02:00
cdosoftei
8b6e0ec74e php8: remove fci.no_separation 2020-08-12 16:21:36 +02:00
Bob Weinand
0b40ad9f51 Add support for resources to uv_(tcp|udp|pipe)_open 2020-02-18 17:30:08 +01:00
Bob Weinand
9c08cdc984 Add @fd in debug info for UVPoll 2020-02-18 10:10:54 +01:00
Bob Weinand
de08ed4f4d Remove duplicate uv_stream_ce decl 2020-02-16 21:52:18 +01:00
Bob Weinand
82fbf0aef1 Actually do inheritance: UV -> UVStream -> UVTcp|UVPipe|UVTty 2020-02-16 21:06:12 +01:00
Bob Weinand
1400af988e Fix uv_spawn() 2020-02-16 17:21:32 +01:00
Bob Weinand
515476f765 uv_stdio_new() without args now creates an UVStdio with UV_IGNORE (Closes #73) 2020-02-15 22:51:43 +01:00
Bob Weinand
5be79e433d Properly handle all cases of php_uv_t * for uv_stop in uv_do_callback2() 2020-02-15 22:19:26 +01:00
Bob Weinand
67356706aa Add missing cb info in getaddrinfo() proto 2020-02-15 21:05:25 +01:00
Bob Weinand
1a9192c3e2 Stop the loop on exception so that execution can continue with the exception 2020-02-15 20:53:51 +01:00
Bob Weinand
23f89b231f Make $offset optional for uv_fs_write() 2020-02-15 20:05:45 +01:00
Bob Weinand
8b0c0e924c Fix scandir() & require callbacks where necessary 2020-02-15 19:46:57 +01:00
Bob Weinand
1682ecf99f Fix closing failed uv_spawn() (Closes #79) 2020-02-15 18:07:24 +01:00
Bob Weinand
082fdfb203 Add uv_process_get_pid() (Closes #71) 2020-02-15 17:50:44 +01:00
Bob Weinand
e76ac0dccb Refactor uv callback signatures 2020-02-15 17:40:10 +01:00
Bob Weinand
b05e148986 Fix arginfo 2020-02-15 12:02:39 +01:00
Bob Weinand
4b69d0fa2e Fix off-by-one in environ buffer printing (#75) 2019-08-04 21:15:23 +02:00
Bob Weinand
63fa7f1609 Fix segfault on uv_fs_readlink() where target is not a link 2019-05-04 00:18:05 +02:00
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