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
Andrey
97b329c164
Added a length parameter to read
2013-02-07 16:12:23 +01:00
Anatoliy Belsky
eaa75735e2
fixed NTS build, plus
...
- extended config.w32 to look for libs/includes in extra dirs
- fixed config.w32 to care about the sockets ext
- --enable-uv-httpparser is a better wording
- since non bundled library can be used, wording fixed in minfo
2012-11-18 21:56:26 +01:00
Shuhei Tanuma
b77f34833f
common: fix BAD ADDRESS for callback
2012-08-09 12:20:55 +09:00
Shuhei Tanuma
800897c03c
common: fix memory leak regarding handling callback zval
2012-08-05 21:42:06 +09:00
Shuhei Tanuma
6e3eb88f7c
common: uv_write check resource type
2012-07-30 00:56:41 +09:00
Shuhei Tanuma
9f6fdbce52
common: uv_close check uv resource type
2012-07-30 00:53:57 +09:00
Shuhei Tanuma
7b03433f2d
common: uv_read_Stop checks resource type
2012-07-30 00:46:07 +09:00
Shuhei Tanuma
7b2f075a12
common: uv_read_start checks resource type.
2012-07-30 00:45:21 +09:00
Shuhei Tanuma
17b1436023
unix: add type check for uv_shutdown
2012-07-30 00:40:55 +09:00
Shuhei Tanuma
89a46643ca
fix compiler error
2012-07-28 02:02:41 +09:00
Shuhei Tanuma
69aeb9f89f
listen: check uv resource types.
2012-07-28 02:02:27 +09:00
Shuhei Tanuma
1c0ed4c82c
poll: checks uv resource type
2012-07-28 01:59:01 +09:00
Shuhei Tanuma
07122e463e
httpparser: use uppercase keys
2012-07-26 12:36:25 +09:00
Shuhei Tanuma
0c6d859032
common: zval_to_fd macro should be return FALSE
2012-07-24 12:24:48 +09:00
Shuhei Tanuma
be03147188
stdio: fix unmatch cast
2012-07-24 12:15:55 +09:00
Shuhei Tanuma
03fa36a873
spawn: remove unused variable
2012-07-24 12:13:03 +09:00
Shuhei Tanuma
8b0269a3cb
httpparser: fix it
2012-07-24 01:47:02 +09:00
Shuhei Tanuma
c591f130c6
httpparser: try to fix inconsistent hash
2012-07-24 01:45:13 +09:00
Shuhei Tanuma
f39db39e8e
httpparser: fix inconsistent hash
2012-07-24 01:21:50 +09:00
Shuhei Tanuma
74a64409dc
spawn: fix segv
2012-07-24 01:00:37 +09:00
Shuhei Tanuma
03e577c827
httpparser: result variable only update when parser finished.
2012-07-24 00:53:38 +09:00
Shuhei Tanuma
1dd205fe12
fs_poll: check resource type
2012-07-24 00:21:47 +09:00
Shuhei Tanuma
8569abc1f8
process: add type check for uv_process_kill
2012-07-24 00:15:56 +09:00
Shuhei Tanuma
c134d2fba2
tcp: check types
2012-07-24 00:12:56 +09:00
Shuhei Tanuma
7ac60188e9
tty: add type check
2012-07-23 23:13:10 +09:00
Shuhei Tanuma
5a941edd4a
tty: don't raise E_ERROR
2012-07-23 23:08:12 +09:00
Shuhei Tanuma
9a55c5e270
spawn: fix memory leak when using file descriptor
2012-07-23 22:16:05 +09:00
Shuhei Tanuma
eac00b68fb
spawn: opitons accepts uid and gid
2012-07-23 22:12:59 +09:00
Shuhei Tanuma
be24fe6155
docs: add uv_stdio_new function
2012-07-23 00:08:05 +09:00
Shuhei Tanuma
0a2b0751c1
spawn: change function signature. add uv_stdio_new function
2012-07-22 21:54:19 +09:00
Shuhei Tanuma
9a9de96cee
docs: don't put docs into source code. too long
2012-07-22 14:06:52 +09:00
Shuhei Tanuma
c26419f3da
uv_fs: don't raise E_ERROR
2012-07-22 13:38:29 +09:00
Shuhei Tanuma
f4d67706ad
uv_fs: use common function
2012-07-22 13:36:32 +09:00
Shuhei Tanuma
be965f991f
fixed compiler warnings
2012-07-21 21:10:15 +09:00
Shuhei Tanuma
cb40015ffd
for now, move declarations
2012-07-21 20:54:45 +09:00
Shuhei Tanuma
4cb0b36775
don't use false
2012-07-21 20:51:22 +09:00
Shuhei Tanuma
4679654de7
uv_lock functions: use common function
2012-07-21 20:49:10 +09:00
Shuhei Tanuma
fb60200518
uv_async: add type check
2012-07-21 15:56:33 +09:00
Shuhei Tanuma
0ad997171b
uv_udp: check resource type
2012-07-21 15:53:44 +09:00
Shuhei Tanuma
2fd3b35a29
uv_pipe: add type check
2012-07-21 13:22:59 +09:00
Shuhei Tanuma
201787a723
uv_prepare: check types
2012-07-21 09:26:21 +09:00
Shuhei Tanuma
42672626e5
uv_check: add type check
2012-07-21 08:58:14 +09:00
Shuhei Tanuma
bbee29313c
uv_idle: add type check
2012-07-21 08:38:18 +09:00
Shuhei Tanuma
e101808e81
uv_timer: add type check and prevent freeze
2012-07-21 00:53:08 +09:00
Shuhei Tanuma
395806f1ea
uv_timer_start: check timeout and repeat value
2012-07-21 00:32:35 +09:00
Shuhei Tanuma
5e4071ecf7
for now, use macro for initialize uv_timer_init resource
2012-07-21 00:12:24 +09:00
Shuhei Tanuma
5275104bcf
uv_tcp_connect: add type check
2012-07-21 00:01:30 +09:00
Shuhei Tanuma
543a05c678
add comment [ci skip]
2012-07-20 23:46:44 +09:00
Shuhei Tanuma
3b3968292d
refactor lock resource
2012-07-20 12:55:40 +09:00
Shuhei Tanuma
60db70f26b
don't use meanless variable name
2012-07-20 12:34:40 +09:00
Shuhei Tanuma
a7bf3ac170
use macro
2012-07-20 12:32:51 +09:00
Shuhei Tanuma
02da1858bc
don't access addr->is_ipv4 directly
2012-07-20 00:57:08 +09:00
Shuhei Tanuma
6344c4c07f
don't access php_uv_sockaddr_t's sockaddr_in directly
2012-07-20 00:52:36 +09:00
Shuhei Tanuma
f6c7e40d20
uv_ip4_addr, uv_ip6_addr: add emalloc check
2012-07-20 00:42:44 +09:00
Shuhei Tanuma
7a37f8f3c1
uv_streror: type check and refactor
2012-07-20 00:24:17 +09:00
Shuhei Tanuma
693a8782c1
uv_tcp_bind, uv_udp_bind: check resource type
2012-07-20 00:09:33 +09:00
Shuhei Tanuma
4de840259b
uv_strerror, uv_err_name: check error code
2012-07-19 23:37:55 +09:00
Shuhei Tanuma
f46f910141
do need to use ZEND_FETCH_RESOURCE_NORETURN macro here
2012-07-19 23:14:00 +09:00
Shuhei Tanuma
ee4e70610c
use fetch loop macro
2012-07-19 23:11:58 +09:00
Shuhei Tanuma
ed379f738f
check loop resource type
2012-07-19 23:09:34 +09:00
Shuhei Tanuma
2015dd41d6
add docs [ci skip]
2012-07-18 22:05:20 +09:00
Shuhei Tanuma
52b91e2b44
uv_ref and uv_unref supports uv_loop resource
2012-07-17 21:58:52 +09:00
Shuhei Tanuma
f3705a06a0
update docs [ci skip]
2012-07-17 21:48:35 +09:00
Shuhei Tanuma
6d3af6ba5a
update readm [ci skip]
2012-07-17 12:42:03 +09:00
Shuhei Tanuma
ef600350e1
remove unused variable
2012-07-17 12:41:34 +09:00
Shuhei Tanuma
49ffc90d8d
update docs [ci skip]
2012-07-17 00:52:06 +09:00
Shuhei Tanuma
dfef38cc69
update readme [ci skip]
2012-07-16 10:31:38 +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
ccd0c57305
update docs [ci skip]
2012-07-16 01:34:41 +09:00
Shuhei Tanuma
35d57e6b35
fixing markdown [ci skip]
2012-07-16 01:25:49 +09:00
Shuhei Tanuma
d458cd5905
add several function docs [ci skip]
2012-07-16 01:22:05 +09:00
Shuhei Tanuma
af6e179128
add uv_poll docs [ci skip]
2012-07-16 00:51:05 +09:00
Shuhei Tanuma
ed895be80c
add uv_poll_init_socket
2012-07-16 00:32:29 +09:00
Shuhei Tanuma
01ba787a36
do not free here
2012-07-16 00:09:29 +09:00
Shuhei Tanuma
61a05cbc96
uv_fs*: callback parameter fd
passes given PHPs stream, socket or file descriptor.
2012-07-15 23:47:49 +09:00
Shuhei Tanuma
157f6ca7e2
adjust fs_poll sample
2012-07-15 22:54:56 +09:00
Shuhei Tanuma
ff5f4023f4
add note for uv_read_start
2012-07-15 21:32:16 +09:00
Shuhei Tanuma
2454e91bda
add http parser document. and fix constnats [ci skip]
2012-07-15 20:45:34 +09:00
Shuhei Tanuma
091eef8a6b
update readme [ci skip]
2012-07-15 20:27:53 +09:00
Shuhei Tanuma
04c2fdb745
fix write2 proto docs [ci skip]
2012-07-15 20:21:11 +09:00
Shuhei Tanuma
933a05f0f5
update readme [ci skip]
2012-07-15 20:16:15 +09:00
Shuhei Tanuma
706ef03e74
change idle cb parameters
2012-07-15 20:10:07 +09:00
Shuhei Tanuma
b0d8e785b6
add several docs [ci skip]
2012-07-15 19:12:25 +09:00
Shuhei Tanuma
b927f15019
hmm... for now, add descriptions and parameters into source code. [ci skip]
2012-07-15 19:01:23 +09:00
Shuhei Tanuma
ddc4d3017d
TODO: fix uv_spawn
2012-07-15 17:57:45 +09:00
Shuhei Tanuma
58feabb350
add uv_loop_new
2012-07-15 17:51:06 +09:00
Shuhei Tanuma
9c28657090
i don't have good solution for including php_sockets.h on windows box. for now comment out
2012-07-15 14:03:22 +09:00
Shuhei Tanuma
141de07e0e
now, uv_fs functions accepts php's stream, socket and fd
2012-07-15 03:56:29 +09:00
Shuhei Tanuma
f5bf49b415
for now, add uv_walk function. but it does not work yet.
2012-07-15 01:40:34 +09:00
Shuhei Tanuma
0e8eb9fcbb
for now, add uv_write2
2012-07-14 23:24:56 +09:00
Shuhei Tanuma
fb3f2e5930
Merge branch 'feature/dtrace-support'
2012-07-14 22:57:56 +09:00
Shuhei Tanuma
20ab459846
adjust dtrace support
2012-07-14 22:57:18 +09:00
Shuhei Tanuma
96c64de3da
remove unused include line
2012-07-13 13:18:03 +09:00
Shuhei Tanuma
232ed1f90d
dtrace just work on OSX box. Yay
2012-07-13 12:59:15 +09:00
Shuhei Tanuma
bd2d6ce7fe
use common function for tcp_connect
2012-07-13 00:19:11 +09:00
Shuhei Tanuma
fcb6d907aa
set no_separation = 1
2012-07-12 23:52:21 +09:00
Shuhei Tanuma
48dfbd42f6
for now, add files
2012-07-12 23:37:47 +09:00
Shuhei Tanuma
bfd6342971
clear old callback
2012-07-12 10:28:17 +09:00
Shuhei Tanuma
f2b56c8b76
remove unused zval
2012-07-12 10:27:08 +09:00
Shuhei Tanuma
985c304ad2
fix uv_read_start segv
2012-07-12 10:20:31 +09:00
Shuhei Tanuma
f6b259bd67
remove unused address zval
2012-07-12 00:48:52 +09:00
Shuhei Tanuma
0c48f290a1
use fci and fcc for getaddr cb
2012-07-12 00:47:24 +09:00
Shuhei Tanuma
98ff7e121b
use fci and fcc for read2 cb
2012-07-12 00:45:20 +09:00
Shuhei Tanuma
15fd7624d5
use fci and fcc for pol cb
2012-07-12 00:43:22 +09:00
Shuhei Tanuma
0cbdc2f42e
use fci and fcc for fs poll cb
2012-07-12 00:40:33 +09:00
Shuhei Tanuma
e5b8b8d768
fix compile warnings
2012-07-12 00:38:17 +09:00
Shuhei Tanuma
d424bc25f1
use fci and fcc for fs event cb
2012-07-12 00:36:33 +09:00
Shuhei Tanuma
759849c6a2
use fci and fcc for fs cb
2012-07-12 00:34:41 +09:00
Shuhei Tanuma
92ce41343d
use fci and fcc for queue callbacks
2012-07-12 00:20:09 +09:00
Shuhei Tanuma
79103b8e12
use fci and fcc for pipe_connect_cb
2012-07-12 00:14:53 +09:00
Shuhei Tanuma
6ffc7a34b7
use fci and fcc for proc_close_cb
2012-07-12 00:11:53 +09:00
Shuhei Tanuma
04023a572f
use fci and fcc for async_cb
2012-07-11 22:49:03 +09:00
Shuhei Tanuma
f81ae681e8
use fci and fcc for check_cb
2012-07-11 22:27:57 +09:00
Shuhei Tanuma
907f6f1882
use fci and fcc for prepare_cb
2012-07-11 22:24:05 +09:00
Shuhei Tanuma
a5e2ddd48d
use fci and fcc for send_cb
2012-07-11 22:21:46 +09:00
Shuhei Tanuma
8a5bd17944
use fci and fcc for idle_cb
2012-07-11 22:17:18 +09:00
Shuhei Tanuma
4fc3f9f879
use fci and fcc for timer_cb
2012-07-11 22:15:33 +09:00
Shuhei Tanuma
55921716ed
use fci and fcc for close_cb
2012-07-11 22:13:47 +09:00
Shuhei Tanuma
aa0ad16b0f
use fci and fcc for shutdown_cb
2012-07-11 22:01:00 +09:00
Shuhei Tanuma
2c3954f56c
use fci and fcc for write_cb
2012-07-11 21:58:16 +09:00
Shuhei Tanuma
8589280609
use fci and fcc for listen_cb
2012-07-11 21:57:24 +09:00
Shuhei Tanuma
675d794060
use fci and fcc for read_cb
2012-07-11 21:52:44 +09:00
Shuhei Tanuma
10d2eadeff
for now, initialize array here
2012-07-11 13:50:40 +09:00
Shuhei Tanuma
937a4e0673
use common function for initialize callback
2012-07-11 13:36:25 +09:00
Shuhei Tanuma
899ccf4b56
remove unused connect_cb zval
2012-07-11 13:09:19 +09:00
Shuhei Tanuma
cd35fa861b
don't use magic number
2012-07-11 13:07:57 +09:00
Shuhei Tanuma
e1904a6d25
- use fci and fcc instead of zval.
2012-07-11 13:07:08 +09:00
Shuhei Tanuma
2da0e2b198
fix typo
2012-07-11 13:07:08 +09:00
Shuhei Tanuma
d2e7897e42
fix unexpected key length for php_uv_address_to_zval
2012-07-11 13:05:13 +09:00
Shuhei Tanuma
456e50c7e8
refactor resource initializer
2012-07-10 23:44:54 +09:00
Shuhei Tanuma
c313b64bcc
use macro instead of copy & paste
2012-07-10 21:45:56 +09:00
Shuhei Tanuma
98c73fb2d7
fix proto docs
2012-07-10 21:24:27 +09:00
Shuhei Tanuma
23a5b43dd2
fix arginfo count
2012-07-10 21:22:16 +09:00
Shuhei Tanuma
e4f8e042cc
add proto docs
2012-07-09 23:44:15 +09:00
Shuhei Tanuma
93c9bc021d
change statbuf keys
2012-07-09 13:49:43 +09:00
Shuhei Tanuma
9e603ef603
add poll api
2012-07-09 12:24:35 +09:00
Shuhei Tanuma
9a35ffd419
add arginfo
2012-07-09 11:47:20 +09:00
Shuhei Tanuma
8f262a3f70
add fs_poll_start/stop functions
2012-07-09 01:27:02 +09:00
Shuhei Tanuma
9f3e5f3cdd
change timer cb signature
2012-07-09 01:26:42 +09:00
Shuhei Tanuma
c56e30b487
add several semaphore functions
2012-07-09 00:23:25 +09:00