Cees-Jan Kiewiet
5f5281da24
Drop inclusion of zend_ts_hash.h ( #103 )
...
File no longer exists as per 00c668a15d
2021-08-22 08:40:12 -05:00
Bob Weinand
afe8688128
Fix PHP 8 build
2020-08-15 21:02:08 +02:00
Bob Weinand
0d8adf5609
Update php uv version to 0.3.0
2020-02-16 00:06:34 +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
63fa7f1609
Fix segfault on uv_fs_readlink() where target is not a link
2019-05-04 00:18:05 +02:00
Bob Weinand
afcbfe909b
Aaaand update uv version in php_uv.h
2019-04-28 14:21:08 +02:00
Bob Weinand
99fbf65273
Fix build on php master
2019-04-28 13:44:03 +02:00
Bob Weinand
7ff75d760d
Prepare 0.2.2
2017-06-27 15:50:12 +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
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
2c384371bf
Prepare v0.1.2
2017-03-06 13:28:35 +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
5b47ac612f
Prepare release 0.1.1
2016-11-14 13:31:53 +01:00
Bob Weinand
d877d48a6d
Thanks to Remi, a few package.xml fixes
2016-11-01 18:02:31 +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
71aa70aee1
Fix uv build with ext/sockets being shared (See also #14 )
2016-10-29 17:00:50 +02:00
Remi Collet
7f6df50bfd
use normalized macro name
2016-10-28 14:20:19 +02:00
Bob Weinand
2f34c3dc02
Remove old clutter & dead http parser code
2016-10-26 14:34:10 +02:00
Bob Weinand
bd1e4a9b45
Fix early freeing of non closeable uv handles
2016-10-01 10:51:09 +01:00
Bob Weinand
25fa65eebe
Make ext/sockets optional
2015-01-23 22:56:57 +01:00
Bob Weinand
4751e80a65
Fix various bugs...
2015-01-18 17:24:13 +01:00
Bob Weinand
4332fe7aa1
Current, broken PHP 7 port...
2015-01-18 02:58:40 +01:00
Tjerk Meesters
bdaf5a0bb8
Enabled http parser again
2014-08-21 08:31:25 +08:00
Tjerk Meesters
90f12cb77f
Moving parser functionality in a separate file (part 1)
2014-08-20 18:44:55 +08:00
Daniel Lowrey
148a84f62b
Add UV::S_IFDIR + UV::S_IFREG constants
...
These constants allow differentiation between regular files (S_IFREG)
and directories (S_IFDIR) when used for bitwise AND operations against
the "mode" value returned from uv_fs_stat/fstat/lstat().
Example:
uv_fs_open(uv_default_loop(), __FILE__, UV::O_RDONLY, 0, function($r){
uv_fs_fstat(uv_default_loop(), $r, function($result, $da){
echo "is directory: ", ($da['mode'] & UV::S_IFDIR ? 'yes' : 'no'), "\n";
echo "if file: ", ($da['mode'] & UV::S_IFREG ? 'yes' : 'no'), "\n";
});
});
uv_run();
2014-06-18 10:04:05 -04:00
Daniel Lowrey
cf36261e3e
Fix accidental chmod changes
2014-06-11 19:09:32 -04:00
Daniel Lowrey
1e32c24608
Add signal handling support
...
- resource uv_signal_init([resource $loop])
- void uv_signal_start(resource $sigHandle, callable $onSignal, int $signal)
- void uv_signal_stop($signalResource)
Example:
<?php
$sigHandle = uv_signal_init();
$onSigint = function($sigHandle, $sigNum) {
printf("Caught signal: %d\n", $sigNum);
uv_signal_stop($sigHandle);
uv_stop();
};
uv_signal_start($sigHandle, $onSigint, UV::SIGINT);
uv_run();
New signal constants (these vary by OS):
<?php
$refl = new ReflectionClass('UV');
print_r($refl->getConstants());
2014-06-10 10:56:32 -04:00
Shuhei Tanuma
951622a3aa
improve http parser:
...
* support multiple line header field and value.
* support http upgrade mechanism (you have to parse websocket protocol manually)
2014-02-25 17:17:34 +09:00
Shuhei Tanuma
7d210d8033
check thread feature
2014-01-04 02:37:26 +09:00
brettlangdon
9e0935aa91
bump version to 0.0.2
2014-01-02 18:23:30 -05:00
Shuhei Tanuma
9ab5074c77
add 5.2 support
2013-09-09 15:59:20 +09:00
Shuhei Tanuma
90c9db6905
update latest libuv and http-parser
...
Notes: ares functions are removed as uv removed that features. please use before commit
if you want to use ares features. currently, php ares extension seems not maintained.
please ask me when you met some troubles about ares feature.
2013-02-11 22:09:29 +09:00
Shuhei Tanuma
a62a234d49
win32: remove needless ifndef block
2012-09-26 02:59:31 +09:00
Shuhei Tanuma
0a2b0751c1
spawn: change function signature. add uv_stdio_new function
2012-07-22 21:54:19 +09:00
Shuhei Tanuma
cb40015ffd
for now, move declarations
2012-07-21 20:54:45 +09:00
Shuhei Tanuma
4679654de7
uv_lock functions: use common function
2012-07-21 20:49:10 +09:00
Shuhei Tanuma
0ad997171b
uv_udp: check resource type
2012-07-21 15:53:44 +09:00
Shuhei Tanuma
0a0547fb37
remove needless semicoron
2012-07-16 10:49:12 +09:00
Shuhei Tanuma
61a05cbc96
uv_fs*: callback parameter fd
passes given PHPs stream, socket or file descriptor.
2012-07-15 23:47:49 +09:00
Shuhei Tanuma
9c28657090
i don't have good solution for including php_sockets.h on windows box. for now comment out
2012-07-15 14:03:22 +09:00
Shuhei Tanuma
141de07e0e
now, uv_fs functions accepts php's stream, socket and fd
2012-07-15 03:56:29 +09:00
Shuhei Tanuma
20ab459846
adjust dtrace support
2012-07-14 22:57:18 +09:00
Shuhei Tanuma
0c48f290a1
use fci and fcc for getaddr cb
2012-07-12 00:47:24 +09:00
Shuhei Tanuma
98ff7e121b
use fci and fcc for read2 cb
2012-07-12 00:45:20 +09:00
Shuhei Tanuma
15fd7624d5
use fci and fcc for pol cb
2012-07-12 00:43:22 +09:00
Shuhei Tanuma
0cbdc2f42e
use fci and fcc for fs poll cb
2012-07-12 00:40:33 +09:00
Shuhei Tanuma
d424bc25f1
use fci and fcc for fs event cb
2012-07-12 00:36:33 +09:00