53 require_once
'MDB2.php';
97 if (!preg_match(
'/^rb?\+?$/', $mode)) {
100 $url = parse_url($path);
101 if (empty($url[
'host'])) {
104 $this->db_index = (int)$url[
'host'];
105 if (!isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
109 $this->lob_index = (int)$url[
'user'];
110 if (!isset($db->datatype->lobs[$this->lob_index])) {
129 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
131 $db->datatype->_retrieveLOB($db->datatype->lobs[$this->lob_index]);
133 $data = $db->datatype->_readLOB($db->datatype->lobs[$this->lob_index], $count);
134 $length = strlen(
$data);
170 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
187 if (!isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
192 $result = $db->datatype->_endOfLOB($db->datatype->lobs[$this->lob_index]);
193 if (version_compare(phpversion(),
"5.0",
">=")
194 && version_compare(phpversion(),
"5.1",
"<")
228 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
231 'db_index' => $this->db_index,
232 'lob_index' => $this->lob_index,
247 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
249 if (isset($db->datatype->lobs[$this->lob_index])) {
250 $db->datatype->_destroyLOB($db->datatype->lobs[$this->lob_index]);
251 unset($db->datatype->lobs[$this->lob_index]);
259 if (!stream_wrapper_register(
"MDB2LOB",
"MDB2_LOB")) {