Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.3

Request #18017 Signature for sendData() not the same in all drivers.
Submitted: 2010-11-01 01:29 UTC
From: mikyter Assigned:
Status: Open Package: Net_Server (version 1.0.2)
PHP Version: Irrelevant OS: All
Roadmaps: (Not assigned)    
Subscription  


 [2010-11-01 01:29 UTC] mikyter (Mikyter Vr)
Description: ------------ The method sendData() has different parameters in the fork and sequential driver. Test script: --------------- class Net_Server_Test extends Net_Server_Handler { function onReceiveData($clientId = 0, $data = '') { $this->_server->sendData($clientId, 'You said: ' . $data); } } Expected result: ---------------- When the client sends "Hello" to the server, it answers with "You said: Hello". Actual result: -------------- With the sequential driver it works. If you use the fork driver, the server answers with "0".

Comments

 [2010-11-01 15:52 UTC] mikyter (Mikyter Vr)
Sorry, got confused by the parameters... It actually works but you can't turn off debugging, if you call the sendData() method of the fork driver with a client id.