/php-uv/examples/ |
H A D | debug_timer.php | 4 $stat = array(); variable 5 $stat['begin'] = memory_get_usage(); 7 uv_timer_start($timer, 10, 1000, function($timer) use (&$stat) { 8 $stat["current"] = memory_get_usage(); 9 printf("memory: %d\n", $stat["current"] - $stat['begin']);
|
H A D | poll.php | 8 uv_poll_start($poll, UV::READABLE, function($poll, $stat, $ev, $socket) { 10 var_dump($stat); 14 uv_poll_start($pp, UV::WRITABLE, function($poll, $stat, $ev, $conn) { 16 var_dump($stat);
|
H A D | lstat.php | 3 uv_fs_lstat(uv_default_loop(), __FILE__, function($stat) { 4 var_dump($stat);
|
H A D | stat.php | 3 uv_fs_stat(uv_default_loop(), __FILE__, function($stat) { 4 var_dump($stat);
|
H A D | tcp_bind6.php | 19 uv_tcp_connect($c, uv_ip6_addr('::1',9999), function($client, $stat){ 20 if ($stat == 0) { 21 uv_write($client,"Hello",function($socket, $stat){
|
H A D | fstat.php | 4 uv_fs_fstat(uv_default_loop(), $file, function($file, $stat) { 5 var_dump($stat);
|
H A D | fs_poll.php | 5 uv_fs_poll_start($poll,function($rsc,$stat,$p) {
|
H A D | timer.php | 6 uv_timer_start($timer, 1000, 1000, function($stat) use (&$i, $timer, $loop) {
|
H A D | idle.php | 6 uv_idle_start($idle, function($stat) use (&$i, $idle, $loop) {
|
H A D | spawn_fd.php | 16 function($process, $stat, $signal){
|
H A D | spawn.php | 15 function($process, $stat, $signal){
|
H A D | fingerd.php | 31 uv_write($socket, $data, function($client, $stat) {
|
/php-uv/tests/ |
H A D | 399-fs-stat-regression-no14.phpt | 7 uv_fs_stat($loop, $filename, function ($stat) use ($loop) { 8 if (is_long($stat) && $stat < 0) { 16 uv_fs_stat($loop, $filename, function ($stat) { 17 if (is_array($stat) || !$stat) {
|
H A D | 330-poll.phpt | 9 uv_poll_start($poll, UV::READABLE, function($poll, $stat, $ev, $socket) { 14 uv_poll_start($pp, UV::WRITABLE, function($poll, $stat, $ev, $conn) use (&$pp) { 24 uv_tcp_connect($tcp, $address, function($client, $stat) { 28 uv_write($client, $request, function($client, $stat) { 29 if ($stat == 0) {
|
H A D | 400-tcp_bind6.phpt | 20 uv_tcp_connect($c, uv_ip6_addr($addrinfo['address'], $addrinfo['port']), function($client, $stat) { 21 if ($stat == 0) { 22 uv_write($client,"Hello",function($socket, $stat){
|
H A D | 400-tcp_bind.phpt | 20 uv_tcp_connect($c, uv_ip4_addr($addrinfo['address'],$addrinfo['port']), function($client, $stat) { 21 if ($stat == 0) { 22 uv_write($client,"Hello",function($socket, $stat) {
|
H A D | 100-uv_check.phpt | 11 uv_idle_start($idle, function($stat) use (&$i, $idle, $loop){
|
H A D | 320-fs-event.phpt | 7 …uv_fs_event_init(uv_default_loop(), dirname(DIRECTORY_PATH), function($rsc, $name, $event, $stat) {
|
H A D | 101-uv-idle.phpt | 9 uv_idle_start($idle, function($stat)
|
H A D | 330-poll-pipe.phpt | 12 uv_poll_start($poll, UV::READABLE, function($poll, $stat, $ev, $fd) {
|
H A D | 320-fs-poll.phpt | 12 uv_fs_poll_start($poll,function($rsc,$stat,$p,$c) use (&$i) {
|
H A D | 600-pipe_bind.phpt | 28 uv_write($pipe, "Hello", function($stream, $stat) {
|
H A D | 005-uv_listen_cb-not-destroyed.phpt | 52 …uv_tcp_connect($c, uv_ip4_addr('0.0.0.0', 9876), function ($stream, $stat) use (&$closed, $tcpServ…
|
/php-uv/ |
H A D | README.md | 47 uv_tcp_connect($c, uv_ip4_addr('0.0.0.0',8888), function($stream, $stat){ 48 if ($stat == 0) { 49 uv_write($stream,"Hello",function($stream, $stat){ 867 uv_idle_start($idle, function($idle_handle, $stat) use (&$i){ 904 uv_idle_start($idle, function($idle_handle, $stat) use (&$i){ 1467 uv_write($b,"Hello", function($stream,$stat){ 2059 uv_idle_start($idle, function($stat) use (&$i, $idle, $loop){ 2632 async stat 2640 *callable $callback*: this callback parameter expects (resource $stream, array $stat) 2871 uv_poll_start($poll, UV::WRITABLE, function($poll, $stat, $ev, $conn){
|
H A D | php_uv.c | 443 struct stat stat; local 444 fstat(fd, &stat); 445 if (!S_ISFIFO(stat.st_mode)) 1012 PHP_UV_FS_SETUP_AND_EXECUTE(stat, path->val); 2027 static zval php_uv_stat_to_zval(const uv_stat_t *stat) argument 2032 add_assoc_long_ex(&result, ZEND_STRL("dev"), stat->st_dev); 2033 add_assoc_long_ex(&result, ZEND_STRL("ino"), stat->st_ino); 2034 add_assoc_long_ex(&result, ZEND_STRL("mode"), stat->st_mode); 2036 add_assoc_long_ex(&result, ZEND_STRL("uid"), stat->st_uid); 2037 add_assoc_long_ex(&result, ZEND_STRL("gid"), stat->st_gid); [all …]
|