Skip to content

Commit

Permalink
[doc] Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Quan Zhao committed Mar 4, 2020
1 parent 7ecce01 commit d3906c1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ Directives
* [body_filter_by_php_block](#body_filter_by_php_block)
* [php_keepalive](#php_keepalive)
* [php_set](#php_set)
* [php_socket_keepalive](#php_socket_keepalive)
* [php_socket_buffer_size](#php_socket_buffer_size)

php_ini_path
------------
Expand Down Expand Up @@ -420,6 +422,22 @@ php_set

Installs a php handler for the specified variable.

php_socket_keepalive
--------------------
**syntax:** `php_socket_keepalive`_`<size>`_

**default:** `0`

**context:** `http, server`

php_socket_buffer_size
----------------------
**syntax:** `php_socket_buffer_size`_`<size>`_

**default:** `4k`

**context:** `http, server, location, location if`

Nginx API for php
-----------------
* [ngx_exit](#ngx_exit)
Expand Down Expand Up @@ -758,6 +776,7 @@ Nginx non-blocking API for php
* [yield ngx_socket_close](#ngx_socket_close)
* [yield ngx_socket_send](#ngx_socket_send)
* [yield ngx_socket_recv](#ngx_socket_recv)
* [yield ngx_socket_recvpage](#ngx_socket_recvpage)
* [ngx_socket_recvsync](#ngx_socket_recvsync)
* [ngx_socket_clear](#ngx_socket_clear)

Expand Down Expand Up @@ -863,6 +882,17 @@ used to gather data from connected sockets.
buf is passed by reference, so it must be specified as a variable in the argument list.
Data read from socket by ngx_socket_recv() will be returned in buf.

ngx_socket_recvpage
-------------------
**syntax:** `( yield ngx_socket_recvpage(resource $socket, string &$buf, int &$rc) ) : int`

**parameters:**
- `socket: resource`
- `buf: string`
- `rc: int`

**context:** `rewrite_by_php*, access_by_php*, content_by_php*`

ngx_socket_recvsync
-------------------
**syntax:** `ngx_socket_recvsync(resource $socket, string &$buf, int $len) : int`
Expand Down

0 comments on commit d3906c1

Please sign in to comment.