Commit Graph

395 Commits

Author SHA1 Message Date
Daniel Lowrey
5554a21485 Fix undefined return 2015-02-03 01:29:17 -05:00
Daniel Lowrey
5223a36b25 Fix polling for STDIO and crypto socket handles 2015-02-03 01:15:30 -05:00
Bob Weinand
25fa65eebe Make ext/sockets optional 2015-01-23 22:56:57 +01:00
Daniel Lowrey
544b69442c Fix broken uv_fs_read() functionality 2015-01-22 16:06:22 -05:00
Bob Weinand
7bc813596d Fixed missing refcount increment 2015-01-21 17:04:49 +01:00
Bob Weinand
f5b1e9d14e Fix accidental regression in checking for invalid resource 2015-01-21 16:16:26 +01:00
Bob Weinand
74096ae99c Fix buffer overflow 2015-01-18 18:51:49 +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
Steve Rhoades
605a20a568 merging offset changes from PR #60 2014-11-23 18:02:03 +00:00
Steve Rhoades
42361ad0c5 fix segfault issue caused by uv_unref deleting resource, resource is freed by destruct_uv 2014-11-17 16:48:57 +00:00
Steve Rhoades
2408f16a7a Fix issue #36, Fix issue #56, uv_poll no longer allows plainfiles or php related streams resolving a SIGABRT as epoll doesn't support those stream types 2014-11-14 02:01:07 +00:00
Steve Rhoades
dd9aac9abb Fix Issue #59 segfault on null passed as handle to uv_stdio_new 2014-11-13 02:20:21 +00:00
Steve Rhoades
73a295abc9 cleanup uv_fs_scandir 2014-11-12 15:52:08 +00:00
Steve Rhoades
459b61462a fix uv_fs_scandir 2014-11-12 15:49:12 +00:00
Daniel Lowrey
a25595f43a Add $offset param to uv_fs_read() to allow seeking on open handles
This change modifies the uv_fs_read() function signature slightly by adding
a new $offset parameter. This allows the same file handle to be reused for
multiple reads. Previously the only way to access a section of a file that
had already been read was to open a new handle.

Old:
uv_fs_read(resoruce $loop, zval $fd, long $length, callable $callback)

New:
uv_fs_read(resoruce $loop, zval $fd, long $offest, long $length, callable $callback)

This change represents a minor BC break for existing code using uv_fs_read().
2014-11-11 10:47:44 -05:00
Steve Rhoades
59f74ea017 fix issue with uv_loop_new based on 1.0 migration guide, add additional tests 2014-11-10 04:30:57 +00:00
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
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
90f12cb77f Moving parser functionality in a separate file (part 1) 2014-08-20 18:44:55 +08: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
edf8f7fab1 add note 2014-01-04 18:36:14 +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
brettlangdon
a7e9031c60 uv_run now needs a mode, use UV_RUN_DEFAULT 2014-01-02 18:22:12 -05: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
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
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
0a7cb9757c fix #34. forget to initialize zval 2013-02-27 00:22:35 +09: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
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
Andrey
87a5b5d831 Fixed indentation 2013-02-07 16:15:41 +01:00