You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<tablewidth="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><tdvalign="top"><ahref="#eval-1">eval/1</a></td><td>Equivalent to eval(Code, undefined, infinity).</td></tr>
43
+
<tablewidth="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><tdvalign="top"><ahref="#call-2">call/2</a></td><td>Evaluates a function and returns the return value.</td></tr>
44
+
<tr><tdvalign="top"><ahref="#eval-1">eval/1</a></td><td>Equivalent to eval(Code, undefined, infinity).</td></tr>
44
45
<tr><tdvalign="top"><ahref="#eval-2">eval/2</a></td><td>Equivalent to eval(Code, Php, infinity) or eval(Code,
45
46
undefined, Timeout).</td></tr>
46
47
<tr><tdvalign="top"><ahref="#eval-3">eval/3</a></td><td>Tests syntax and evaluates PHP code.</td></tr>
47
48
<tr><tdvalign="top"><ahref="#get_mem-1">get_mem/1</a></td><td>Measures the memory footprint of the PHP instance using
48
49
`ps -o rss`.</td></tr>
49
50
<tr><tdvalign="top"><ahref="#release-1">release/1</a></td><td>Cancels the reservation of a PHP instance, returning it
50
51
to the pool of available instances.</td></tr>
52
+
<tr><tdvalign="top"><ahref="#reload-0">reload/0</a></td><td>Reloads the application completely, carrying over any requires.</td></tr>
53
+
<tr><tdvalign="top"><ahref="#reload_clean-0">reload_clean/0</a></td><td>Same as reload() except no requires are carried over.</td></tr>
54
+
<tr><tdvalign="top"><ahref="#require_code-1">require_code/1</a></td><td>Adds code to be executed when initializing a PHP worker and
55
+
restarts all.</td></tr>
51
56
<tr><tdvalign="top"><ahref="#reserve-0">reserve/0</a></td><td>Equivalent to reserve(undefined).</td></tr>
52
57
<tr><tdvalign="top"><ahref="#reserve-1">reserve/1</a></td><td>Reserves a PHP instance that will only be accessible to
53
58
callers possessing the key returned by this function.</td></tr>
54
59
<tr><tdvalign="top"><ahref="#restart_all-0">restart_all/0</a></td><td>Restarts each PHP thread, waiting if any are reserved.</td></tr>
60
+
<tr><tdvalign="top"><ahref="#return-2">return/2</a></td><td>Same as call/2 except this returns the return, not the whole result.</td></tr>
55
61
<tr><tdvalign="top"><ahref="#start-0">start/0</a></td><td>Starts the PHP application, supervisor, a number of workers,
56
62
and this API server module with the options set in php.app.</td></tr>
57
63
<tr><tdvalign="top"><ahref="#stop-0">stop/0</a></td><td>Stops the PHP application and everything it started.</td></tr>
64
+
<tr><tdvalign="top"><ahref="#unrequire-1">unrequire/1</a></td><td>Removes code from PHP worker initialization and restarts all.</td></tr>
0 commit comments