summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Andres Charsley <[email protected]>2014-01-12 22:52:35 +1300
committerSimon Holywell <[email protected]>2014-04-26 13:27:54 +0100
commitdc392cb8ad2bfe4ec698eb18c6c36b93af2bf2a7 (patch)
tree519b6b7eac28ee1085ad78e0803d292a2b063c0e
parent058e636549d00a5915f5b6c8dffb54549ddae1b8 (diff)
FIX: Added parameter array checking
Updated preg_match_all parameters.
-rw-r--r--test/bootstrap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bootstrap.php b/test/bootstrap.php
index 642e667..7256e51 100644
--- a/test/bootstrap.php
+++ b/test/bootstrap.php
@@ -24,7 +24,7 @@ class MockPDOStatement extends PDOStatement {
public function execute($params) {
$count = 0;
$m = array();
- if (preg_match_all('/"[^"\\\\]*(?:\\?)[^"\\\\]*"|\'[^\'\\\\]*(?:\\?)[^\'\\\\]*\'|(\\?)/', $this->statement, $m)) {
+ if (preg_match_all('/"[^"\\\\]*(?:\\?)[^"\\\\]*"|\'[^\'\\\\]*(?:\\?)[^\'\\\\]*\'|(\\?)/', $this->statement, $m, PREG_SET_ORDER)) {
$count = count($m);
for ($i = 0; $i < $count; $i++) {
if (!isset($params[$i])) {