Bob Weinand
4332fe7aa1
Current, broken PHP 7 port...
2015-01-18 02:58:40 +01:00
Steve Rhoades
1ea6c5aca4
update for libuv 1.0.0rc2, updated tests for api changes
2014-11-07 21:42:17 +00: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
6f4331d0f5
improve several things
2014-01-03 15:37:18 +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
Andrey
7a628ff606
Fix S_IRGRP value
2013-02-04 17:56:42 +01:00
Andrey
2aecc360a3
Added missing constants
2013-01-31 17:54:13 +01:00
Shuhei Tanuma
4bf5f591ed
constants: add several error codes. and add simple(?) http server example
2012-07-23 22:50:06 +09:00
Shuhei Tanuma
0a2b0751c1
spawn: change function signature. add uv_stdio_new function
2012-07-22 21:54:19 +09:00
Shuhei Tanuma
f3c315f917
add util function: uv_handle_type
2012-07-16 02:50:38 +09:00
Shuhei Tanuma
c919487ebe
add uv_guess_handle
2012-07-16 02:06:05 +09:00
Shuhei Tanuma
2454e91bda
add http parser document. and fix constnats [ci skip]
2012-07-15 20:45:34 +09:00
Shuhei Tanuma
9e603ef603
add poll api
2012-07-09 12:24:35 +09:00
Shuhei Tanuma
8f262a3f70
add fs_poll_start/stop functions
2012-07-09 01:27:02 +09:00
Shuhei Tanuma
8eff213350
add http parser support:
...
currently, php-uv has socket handling problem. (https://github.com/chobie/php-uv/issues/5 )
if I don't support httpparser. hard to explain it.
2012-07-01 13:15:14 +09:00
Shuhei Tanuma
3964e3ad7d
this should be okay
2012-06-26 00:10:40 +09:00
Shuhei Tanuma
958065cbfd
fix windows compile
2012-06-25 23:59:49 +09:00
Shuhei Tanuma
f57217a8e1
add uv_udp_set_membership api
2012-06-24 22:33:47 +09:00
Shuhei Tanuma
61a56b15a7
adjust getaddrinfo api
2012-06-24 03:34:06 +09:00
Shuhei Tanuma
60d9842928
add fs_event_init api (not tested)
2012-06-23 14:18:52 +09:00
Shuhei Tanuma
5a397094bd
adjust fs_read
2012-06-23 00:53:58 +09:00
Shuhei Tanuma
fba2060afc
add fs constants
2012-06-22 23:01:32 +09:00
Shuhei Tanuma
aad76ee863
add comment for UV class
2012-05-29 12:03:05 +09:00
Shuhei Tanuma
b1d3e3ada9
update copyrights
2012-05-28 12:10:49 +09:00
Shuhei Tanuma
9d3bde8942
add some functions. still doesn't work yet
2012-05-23 13:35:28 +09:00
Shuhei Tanuma
db9a66823a
add templates
2012-05-23 02:43:11 +09:00