Skip to content

Commit

Permalink
方法onTimer的参数第一参数错误
Browse files Browse the repository at this point in the history
方法onTimer的参数第一参数错误,会引起notice报错。此方法有两个参数
  • Loading branch information
veincheng committed Dec 25, 2014
1 parent fe9b5a5 commit 8eebdb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/04/swoole_after_server.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function onAfter( $data ) {
$this->serv->send( $param['fd'] , $param['msg']);
}

public function onTimer( $interval ) {
public function onTimer( $serv, $interval ) {
// Do nothing.
}
}
Expand All @@ -61,4 +61,4 @@ public function onTimer( $interval ) {

// use src/o2/swoole_async_client to test the server.

?>
?>

0 comments on commit 8eebdb6

Please sign in to comment.