public function readBodyFile()
    {
        if (!isset($this->attrs->server['REQUEST_BODY_FILE'])) {
            return false;
        }

        FileSystem::readfileChunked(
            $this->attrs->server['REQUEST_BODY_FILE'],
            function ($file, $success) {
                $this->attrs->inputDone = true;
                if ($this->sleepTime === 0) {
                    $this->wakeup();
                }
            },
            function ($file, $chunk) {
                // readed chunk
                $this->stdin($chunk);
            }
        );

        return true;
    }
public function readBodyFile()
    {
        if (!isset($this->attrs->server['REQUEST_BODY_FILE'])) {
            return false;
        }

        FileSystem::readfileChunked(
            $this->attrs->server['REQUEST_BODY_FILE'],
            function ($file, $success) {
                $this->attrs->inputDone = true;
                if ($this->sleepTime === 0) {
                    $this->wakeup();
                }
            },
            function ($file, $chunk) {
                // readed chunk
                $this->stdin($chunk);
            }
        );

        return true;
    }
public function readBodyFile ( ) { if ( ! isset ( $ this -> attrs -> server [ 'REQUEST_BODY_FILE' ] ) ) { return false ; } FileSystem :: readfileChunked ( $ this -> attrs -> server [ 'REQUEST_BODY_FILE' ] , function ( $ file , $ success ) { $ this -> attrs -> inputDone = true ; if ( $ this -> sleepTime === 0 ) { $ this -> wakeup ( ) ; } } , function ( $ file , $ chunk ) { // readed chunk $ this -> stdin ( $ chunk ) ; } ) ; return true ; }
Read request body from the file given in REQUEST_BODY_FILE parameter
@return boolean Success
Read request body from the file given in REQUEST_BODY_FILE parameter