filoquin / json-xml-rpc

Automatically exported from code.google.com/p/json-xml-rpc
0 stars 0 forks source link

processRequest() should not be called automatically by the destructor. #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
$server->processRequest() should be called manually by the programmer at the 
end of the server script. When method is called by the destructor, at this 
moment all registered shutdown handlers has been called already (see PHP 
function register_shutdown_function()). Shutdown handlers can free needed 
resources for functions of RPC Server and server will be crashed. For 
example, shutdown handler can manually flush output buffers or unregister 
GLOBALS. Therefore RPC Server doesn't work with WordPress for example.

Original issue reported on code.google.com by mr.big.f...@gmail.com on 23 Mar 2010 at 11:21