// 10% speedup to move MoveNext to child class
function MoveNext()
{
- if(@OCIfetchinto($this->_queryID,$this->fields,$this->fetchMode)) {
+ $ret = @oci_fetch_array($this->_queryID,$this->fetchMode);
+ if($ret !== false) {
global $ADODB_ANSI_PADDING_OFF;
+ $this->fields = $ret;
$this->_currentRow++;
$this->_updatefields();
$arr = array();
return $arr;
}
- if (!@OCIfetchinto($this->_queryID,$this->fields,$this->fetchMode)) {
+ $ret = @oci_fetch_array($this->_queryID,$this->fetchMode);
+ if ($ret === false) {
$arr = array();
return $arr;
}
+ $this->fields = $ret;
$this->_updatefields();
$results = array();
$cnt = 0;
{
global $ADODB_ANSI_PADDING_OFF;
- $ret = @OCIfetchinto($this->_queryID,$this->fields,$this->fetchMode);
+ $ret = @oci_fetch_array($this->_queryID,$this->fetchMode);
if ($ret) {
+ $this->fields = $ret;
$this->_updatefields();
if (!empty($ADODB_ANSI_PADDING_OFF)) {
}
}
}
- return $ret;
+ return $ret !== false;
}
}
* Removed random seed initialization from lib/adodb/adodb.inc.php:216 (see 038f546 and MDL-41198).
* MDL-52286 Added muting erros in ADORecordSet::__destruct().
Check if fixed upstream during the next upgrade and remove this note.
+ * MDL-52544 Pull upstream patch for php7 and ocipo.
skodak, iarenaza, moodler, stronk7, abgreeve