-
Notifications
You must be signed in to change notification settings - Fork 58
Fixes for PHP 8.1 compatibility #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
7284b0a
5364d08
a79c8ec
a05167f
6a01e1c
42c6276
438053d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,7 +134,7 @@ protected function _prepare($sql) | |
*/ | ||
protected function _parseParameters($sql) | ||
{ | ||
$sql = $this->_stripQuoted($sql); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I recommend leaving it as it is |
||
$sql = ($sql !== null) ? $this->_stripQuoted($sql) : ''; | ||
|
||
// split into text and params | ||
$this->_sqlSplit = preg_split('/(\?|\:[a-zA-Z0-9_]+)/', | ||
karyna-t marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
@@ -176,7 +176,6 @@ protected function _parseParameters($sql) | |
*/ | ||
protected function _stripQuoted($sql) | ||
{ | ||
|
||
// get the character for value quoting | ||
// this should be ' | ||
$q = $this->_adapter->quote('a'); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -245,7 +245,7 @@ public function _execute(array $params = null) | |
* @return mixed Array, object, or scalar depending on fetch mode. | ||
* @throws Zend_Db_Statement_Exception | ||
*/ | ||
public function fetch($style = null, $cursor = null, $offset = null) | ||
public function fetch($style = null, $cursor = PDO::FETCH_ORI_NEXT, $offset = 0) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please move these operations to the method code There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hi @fascinosum , done |
||
{ | ||
if ($style === null) { | ||
$style = $this->_fetchMode; | ||
|
@@ -263,6 +263,7 @@ public function fetch($style = null, $cursor = null, $offset = null) | |
* | ||
* @return IteratorIterator | ||
*/ | ||
#[\ReturnTypeWillChange] | ||
public function getIterator() | ||
{ | ||
return new IteratorIterator($this->_stmt); | ||
|
Uh oh!
There was an error while loading. Please reload this page.