src/HSPHP/ReadSocket.php
public function openIndex($index, $db, $table, $key, $fields)
    {
        if (empty($key)) {
            $key = 'PRIMARY';
        }

        $this->sendStr(implode(self::SEP, array('P',
                intval($index),
                $this->encodeString($db),
                $this->encodeString($table),
                $this->encodeString($key),
                $this->encodeString($fields)
            )) . self::EOL
        );
    }
public function openIndex($index, $db, $table, $key, $fields)
    {
        if (empty($key)) {
            $key = 'PRIMARY';
        }

        $this->sendStr(implode(self::SEP, array('P',
                intval($index),
                $this->encodeString($db),
                $this->encodeString($table),
                $this->encodeString($key),
                $this->encodeString($fields)
            )) . self::EOL
        );
    }
{@inheritdoc}