Skip to content

Commit

Permalink
Merge remote branch 'indeyets/stdin'
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Jan 20, 2011
2 parents a7c6bc1 + be06e13 commit 1bf5b6a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/dispatcher.php
Expand Up @@ -32,6 +32,8 @@ public function session_is_started();

public function end_request();

public function get_stdin();

public function session_has_var($name);

public function session_get_var($name);
Expand Down
5 changes: 5 additions & 0 deletions services/dispatcher/appserv.php
Expand Up @@ -136,6 +136,11 @@ public function end_request()
throw new StartNewRequestException();
}

public function get_stdin()
{
return $this->appserver_context['stdin'];
}

public function _get_status()
{
return $this->status;
Expand Down
5 changes: 5 additions & 0 deletions services/dispatcher/manual.php
Expand Up @@ -191,6 +191,11 @@ public function end_request()
return;
}

public function get_stdin()
{
return NULL;
}

public function session_has_var($name)
{
return isset($_SESSION[$name]);
Expand Down
5 changes: 5 additions & 0 deletions services/dispatcher/midgard2.php
Expand Up @@ -129,6 +129,11 @@ public function end_request()
exit();
}

public function get_stdin()
{
return fopen("php://input", "r");
}

/**
* Load a component and dispatch the request to it
*/
Expand Down

0 comments on commit 1bf5b6a

Please sign in to comment.