Steve Rhoades
1ea6c5aca4
update for libuv 1.0.0rc2, updated tests for api changes
2014-11-07 21:42:17 +00:00
Steve Rhoades
84d7e09ce6
saving changes, still 3 failing tests
2014-11-07 18:40:12 +00:00
Shuhei Tanuma
5817bfe4b0
Merge pull request #57 from datibbaw/build-fixups
...
Assorted fixes
2014-08-27 04:46:03 +09:00
Tjerk Meesters
f2389fc530
Added the '-lrt' CFLAG for linux arch back again
2014-08-21 18:14:25 +08:00
Tjerk Meesters
8b5ffcfaa6
Added 5.4 and 5.5 as targets, quiet the 'apt-get update' command
2014-08-21 18:14:03 +08:00
Tjerk Meesters
c8aae4227b
Update Travis to enable http parser
2014-08-21 18:00:16 +08:00
Tjerk Meesters
89d25e6c14
Add 'sockets' dependency
2014-08-21 17:58:30 +08:00
Tjerk Meesters
99c345c51d
Fixed test case to include version being returned as part of the parser results
2014-08-21 17:58:13 +08:00
Tjerk Meesters
9308a0ed05
Removed debug code
2014-08-21 17:52:31 +08:00
Tjerk Meesters
bdaf5a0bb8
Enabled http parser again
2014-08-21 08:31:25 +08:00
Tjerk Meesters
39a7fe3c7e
Fixed off-by-one buffer issue in uv_exepath()
2014-08-20 22:10:40 +08:00
Tjerk Meesters
91ee8f491a
Fixed off-by-one overflow, updated test case
2014-08-20 22:10:40 +08:00
Tjerk Meesters
b035466c66
Disable http parser by default for now
2014-08-20 22:10:40 +08:00
Tjerk Meesters
be7ff58ae1
Fixed a few test cases
2014-08-20 22:10:40 +08:00
Tjerk Meesters
3beb67167f
Updated Travis configuration to work with --with-uv[=DIR]
2014-08-20 22:10:10 +08:00
Tjerk Meesters
90f12cb77f
Moving parser functionality in a separate file (part 1)
2014-08-20 18:44:55 +08:00
Tjerk Meesters
77240aa682
Using --with-uv[=DIR] configure line
2014-08-20 18:44:55 +08:00
Tjerk Meesters
b06dac0603
Removed 'bundled' submodule and updated Travis
2014-08-20 18:43:06 +08:00
Shuhei Tanuma
424faaecdd
Merge pull request #54 from rdlowrey/master
...
Add UV::S_IFDIR + UV::S_IFREG constants
2014-06-18 23:10:55 +09: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
Shuhei Tanuma
75fd2ff591
add signal functions signature to readme
2014-06-12 23:31:29 +09:00
Shuhei Tanuma
81cd617c0f
Merge pull request #53 from rdlowrey/master
...
Add uv_stop, signal handling, etc.
2014-06-12 23:22:57 +09:00
Daniel Lowrey
cf36261e3e
Fix accidental chmod changes
2014-06-11 19:09:32 -04:00
Daniel Lowrey
79853fb161
Don't crash if work queue function fatals in thread
2014-06-10 10:58:34 -04:00
Daniel Lowrey
1fbd585948
Fix copy/paste error message typo
2014-06-10 10:58:34 -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
Daniel Lowrey
096eedc215
Add uv_stop()
2014-06-10 09:11:38 -04:00
Shuhei Tanuma
2b04d12970
[http parser] add http version
2014-02-27 16:48:53 +09: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
fe317d62c0
add upgrade key
2014-02-25 16:13:00 +09:00
Shuhei Tanuma
db83129c5f
update http-parser version to 2.2.1
2014-02-25 16:05:50 +09:00
Shuhei Tanuma
f0d8db93ed
Merge branch 'thread'
...
some libuv functions requires threading feature.
you have to re-compile your PHPwith --enable-maintainer-zts if you want to use threading functions.
NOTE: thread feature runs new php vm another thread. current implementation doesn't copy current
executor globals. so you have to load bootstrap file (like composer's autoloader) manually.
2014-02-24 14:37:55 +09:00
Shuhei Tanuma
111d9b22c5
don't use bitdeli
2014-02-03 12:05:07 +09:00
Shuhei Tanuma
86c0583ea2
Merge pull request #50 from bitdeli-chef/master
...
Add a Bitdeli Badge to README
2014-01-27 22:41:54 -08:00
Bitdeli Chef
e11c463783
Add a Bitdeli badge to README
2014-01-28 06:44:24 +00:00
Shuhei Tanuma
edf8f7fab1
add note
2014-01-04 18:36:14 +09:00
Shuhei Tanuma
6af6b98664
fix test case: poll can't use for file descriptor on most platform
2014-01-04 03:58:02 +09:00
Shuhei Tanuma
7d210d8033
check thread feature
2014-01-04 02:37:26 +09:00
Shuhei Tanuma
5fea385ded
remove inline flag
2014-01-03 16:27:08 +09:00
Shuhei Tanuma
6f4331d0f5
improve several things
2014-01-03 15:37:18 +09:00
Shuhei Tanuma
6eaff02395
Merge pull request #49 from brettlangdon/master
...
update libuv and http-parser versions
2014-01-02 21:54:00 -08:00
brettlangdon
9e0935aa91
bump version to 0.0.2
2014-01-02 18:23:30 -05:00
brettlangdon
a7e9031c60
uv_run now needs a mode, use UV_RUN_DEFAULT
2014-01-02 18:22:12 -05:00
brettlangdon
14d80970bf
uv.a is now called libuv.a
2014-01-02 18:19:28 -05:00
brettlangdon
5000a99b89
update joyent/libuv to v0.10.21
2014-01-02 18:17:29 -05:00
brettlangdon
c164524e61
update joyent/http-parser to v.2.2
2014-01-02 18:17:08 -05:00
Shuhei Tanuma
6cb385d146
Merge pull request #48 from sasezaki/patch-1
...
.travis.yml - add PHP 5.5
2013-10-25 06:22:55 -07:00
kazusuke sasezaki
6b90b9fb50
.travis.yml - add PHP 5.5
2013-10-25 22:20:03 +09:00
Shuhei Tanuma
389bb44c2f
initialize finished flag for 5.2 env
2013-09-09 16:19:09 +09:00
Shuhei Tanuma
9ab5074c77
add 5.2 support
2013-09-09 15:59:20 +09:00