wordpress/wp-content/plugins/sqlite-integration/pdoengine.class.php
/**
	 * Method to extract field data to an array and prepare the query statement.
	 *
	 * If original SQL statement is CREATE query, this function do nothing and return
	 * true. This returned value is not used.
	 *
	 * @return boolean
	 */
Method to extract field data to an array and prepare the query statement.
If original SQL statement is CREATE query, this function do nothing and return
true. This returned value is not used.

@return boolean
Method to extract field data to an array and prepare the query statement . If original SQL statement is CREATE query this function do nothing and return true . This returned value is not used . @return boolean
private function extract_variables() {
		if ($this->query_type == 'create') {
			$this->prepared_query = $this->rewritten_query;
			return true;
		}
		$pattern = '/(?<!\\\\)([\'"])(.*?)(?<!\\\\)\\1/imsx';
		$_limit  = $limit = ini_get('pcre.backtrack_limit');
		if ($limit > 10000000) {
			$query = preg_replace_callback($pattern, array($this, 'replace_variables_with_placeholders'), $this->rewritten_query);
		} else {
			do {
				if ($limit > 10000000) {
					$message = 'The query is too big to parse properly';
					$this->set_error(__LINE__, __FUNCTION__, $message);
					break; 
				} else {
					ini_set('pcre.backtrack_limit', $limit);
					$query = preg_replace_callback($pattern, array($this,'replace_variables_with_placeholders'), $this->rewritten_query);
				}
				$limit = $limit * 10;
			} while (is_null($query));
			ini_set('pcre.backtrack_limit', $_limit);
		}
		$this->queries[]      = "With Placeholders:\n" . $query;
		$this->prepared_query = $query;
	}
private function extract_variables ( ) { if ( $ this -> query_type == 'create' ) { $ this -> prepared_query = $ this -> rewritten_query ; return true ; } $ pattern = '/(?<!\\\\)([\'"])(.*?)(?<!\\\\)\\1/imsx' ; $ _limit = $ limit = ini_get ( 'pcre.backtrack_limit' ) ; if ( $ limit > 10000000 ) { $ query = preg_replace_callback ( $ pattern , array ( $ this , 'replace_variables_with_placeholders' ) , $ this -> rewritten_query ) ; } else { do { if ( $ limit > 10000000 ) { $ message = 'The query is too big to parse properly' ; $ this -> set_error ( __LINE__ , __FUNCTION__ , $ message ) ; break ; } else { ini_set ( 'pcre.backtrack_limit' , $ limit ) ; $ query = preg_replace_callback ( $ pattern , array ( $ this , 'replace_variables_with_placeholders' ) , $ this -> rewritten_query ) ; } $ limit = $ limit * 10 ; } while ( is_null ( $ query ) ) ; ini_set ( 'pcre.backtrack_limit' , $ _limit ) ; } $ this -> queries [ ] = " With Placeholders: \n " . $ query ; $ this -> prepared_query = $ query ; }
Method to extract field data to an array and prepare the query statement.
Method to extract field data to an array and prepare the query statement .
//long queries can really kill this // if user's setting is more than default * 10, make PHP do the job. //no point in continuing execution, would get into a loop //reset the pcre.backtrack_limist