…ecting the client
reported by qingliangcn
These functions provide a quick way to reload the php application from files. This provides a quick way to reload the service in a running system with only a time window during which calls to php will result in noproc.
Previously the Requires would be lost from a worker if it restarted itself.
…rations taking effect during parse test phase, which caused same to trigger fatal error in eval phase if not guarded by function_exists tests.
…es. Use these proc names instead of pids (phpeval_1, etc.) so that when a worker dies, the interface (php.erl) doesn't have to rediscover the pid.
…ging forever when run before any eval. require_code/1 allows you to add initialization code to the PHP workers. unrequire/1 removes it.
php:call/2 takes a PHP function name and a list of arguments (integers, floats, or strings). It escapes the args and passes them into the function. The return value is the same tuple php:eval. php:return/2 passes its arguments to php:call/2 and extracts the return value. The rest of the result is ignored.