Daniel Lowrey
ec7e067ba2
Fix polling for STDIO and crypto socket handles
2015-02-03 01:14:58 -05:00
Bob Weinand
25fa65eebe
Make ext/sockets optional
2015-01-23 22:56:57 +01:00
Bob Weinand
ad1f4c5575
Merge pull request #1 from rdlowrey/master
...
Fix broken uv_fs_read() functionality
2015-01-22 22:26:17 +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
99791cf3b4
updating to libuv 1.0 release
2014-11-20 19:47:35 +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
a026d7526a
update test, just checking for no segfault
2014-11-14 02:26:36 +00:00
Steve Rhoades
f2052a38f1
fix notice
2014-11-14 02:15:36 +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
9d6e66d516
add test for fs_close issue described in #36 , updating travis build
2014-11-10 17:08:39 +00: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
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