Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions library/Zend/Db/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ protected function _stripQuoted($sql)
// remove "foo\"bar"
$sql = preg_replace("/\"(\\\\\"|[^\"])*\"/Us", '', $sql);

if ($sql === null) {
// this preg_replace call can return NULL in case of error (PREG_BACKTRACK_LIMIT_ERROR).
// In this case the result of this method will be an empty string.
return '';
}

// get the character for delimited id quotes,
// this is usually " but in MySQL is `
$d = $this->_adapter->quoteIdentifier('a');
Expand Down