public function stream_open($path, $mode, $options, &$opened_path) {
		if (!preg_match('/^r[bt]?$/', $mode) || is_null($this->context)) {
			return false;
		}
		$opt = stream_context_get_options($this->context);
		if (!is_array($opt[self::WRAPPER_NAME]) || !isset($opt[self::WRAPPER_NAME]['lob'])) {
			return false;
		}
		if (!is_object($opt[self::WRAPPER_NAME]['lob']) && get_class($opt[self::WRAPPER_NAME]['lob']) != 'OCI-Lob') {
			return false;
		}

		$this->_lob = &$opt[self::WRAPPER_NAME]['lob'];

		$this->_lob->rewind();

		return true;
	}
public function stream_open($path, $mode, $options, &$opened_path) {
		if (!preg_match('/^r[bt]?$/', $mode) || is_null($this->context)) {
			return false;
		}
		$opt = stream_context_get_options($this->context);
		if (!is_array($opt[self::WRAPPER_NAME]) || !isset($opt[self::WRAPPER_NAME]['lob'])) {
			return false;
		}
		if (!is_object($opt[self::WRAPPER_NAME]['lob']) && get_class($opt[self::WRAPPER_NAME]['lob']) != 'OCI-Lob') {
			return false;
		}

		$this->_lob = &$opt[self::WRAPPER_NAME]['lob'];

		$this->_lob->rewind();

		return true;
	}
public function stream_open ( $ path , $ mode , $ options , & $ opened_path ) { if ( ! preg_match ( '/^r[bt]?$/' , $ mode ) || is_null ( $ this -> context ) ) { return false ; } $ opt = stream_context_get_options ( $ this -> context ) ; if ( ! is_array ( $ opt [ self :: WRAPPER_NAME ] ) || ! isset ( $ opt [ self :: WRAPPER_NAME ] [ 'lob' ] ) ) { return false ; } if ( ! is_object ( $ opt [ self :: WRAPPER_NAME ] [ 'lob' ] ) && get_class ( $ opt [ self :: WRAPPER_NAME ] [ 'lob' ] ) != 'OCI-Lob' ) { return false ; } $ this -> _lob = & $ opt [ self :: WRAPPER_NAME ] [ 'lob' ] ; $ this -> _lob -> rewind ( ) ; return true ; }
Prepare OCI LOB for stream
@param string $path
@param string $mode
@param int $options
@param string $opened_path
@return boolean
Prepare OCI LOB for stream