has_data example

$this->data_length = strlen($this->data);
    }

    /** * Parse the input data * * @access public * @return bool true on success, false on failure */
    public function parse()
    {
        while ($this->state && $this->state !== 'emit' && $this->has_data())
        {
            $state = $this->state;
            $this->$state();
        }
        $this->data = '';
        if ($this->state === 'emit')
        {
            return true;
        }

        $this->version = '';
        
$this->data = $data;
        $this->data_length = strlen($this->data);
    }

    /** * Parse the input data * * @return bool true on success, false on failure */
    public function parse()
    {
        while ($this->state && $this->state !== 'emit' && $this->has_data())
        {
            $state = $this->state;
            $this->$state();
        }
        $this->data = '';
        if ($this->state === 'emit' || $this->state === 'body')
        {
            return true;
        }

        $this->http_version = '';
        
Home | Imprint | This part of the site doesn't use cookies.