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
Shuhei Tanuma
892dd54f3b
Merge pull request #47 from whatthejeff/fix-make-target
...
Synced make target with aa399f2
.
2013-08-28 22:34:15 -07:00
Jeff Welch
24876c89de
Synced make target with aa399f2
.
2013-04-26 22:20:20 -04:00
Shuhei Tanuma
49f1f7d469
fix typo
2013-04-13 23:37:55 +09:00
Shuhei Tanuma
5d58144648
uv_http_parser_execute: fix #46 change function behavior.
...
result variable was set every function call.
2013-04-13 23:37:26 +09:00
Shuhei Tanuma
baed1c4758
fix segmentation fault when using uv_udp_recv_start #43
2013-03-18 22:19:36 +09:00
Shuhei Tanuma
aa399f2487
switch libuv version to stable version. #40
2013-02-28 21:52:43 +09:00
Shuhei Tanuma
0c9e917dfa
fix travis build
2013-02-27 02:07:12 +09:00
Andrey Kalinovsky
2081b0d459
Landing pull request #39 . fix uv_run_once + added a return value.
...
More Details:
- https://github.com/chobie/php-uv/pull/39
2013-02-27 02:01:37 +09:00
Shuhei Tanuma
405a3020de
[ci skip] add note for 64bit machine. thx @csaoh
2013-02-27 01:36:48 +09:00
Shuhei Tanuma
0a7cb9757c
fix #34 . forget to initialize zval
2013-02-27 00:22:35 +09:00
Shuhei Tanuma
105841efb6
Merge pull request #37 from csaoh/master
...
Updated README.md
2013-02-13 04:31:50 -08:00
Andrey Kalinovsky
ae49de1063
Update README.md
...
Not exactly sure about the types, but I thought it would be great to describe all the parameters for uv_fs_write and uv_fs_stat, since I spent quite some time to figure out there was more than one parameter. I guess some people might get confused as well.
2013-02-13 13:29:22 +01:00
Shuhei Tanuma
d600abc223
Merge pull request #35 from csaoh/fix_constants
...
Fix segfault in fs_stat
2013-02-13 01:13:48 -08:00
Andrey Kalinovsky
05bef15202
Fix codestyle
2013-02-13 10:11:16 +01:00
Andrey
57baf614f8
Fix segfault in fs_stat
2013-02-13 09:58:27 +01:00
Shuhei Tanuma
6b12920338
Merge pull request #32 from csaoh/patch-1
...
Updated README.md
2013-02-11 07:09:58 -08:00
Andrey Kalinovsky
bd931b0e21
Updated README.md
...
I forgot to update the doc about uv_fs_read
Also fixed 2 typo errors
2013-02-11 16:08:41 +01: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
42bfa52b1a
Merge pull request #26 from weltling/master
...
Windows fixes
2013-02-11 03:55:32 -08:00
Shuhei Tanuma
fe0a0b7343
Merge pull request #30 from csaoh/fix_constants
...
Fix S_IRGRP value + Added a length parameter to fs_read
2013-02-11 03:42:52 -08:00
Andrey
87a5b5d831
Fixed indentation
2013-02-07 16:15:41 +01:00
Andrey
97b329c164
Added a length parameter to read
2013-02-07 16:12:23 +01:00
Andrey
7a628ff606
Fix S_IRGRP value
2013-02-04 17:56:42 +01:00
Shuhei Tanuma
c8dc93491c
Merge pull request #27 from baileylo/patch-1
...
Update README.md
2013-01-31 13:58:03 -08:00