From 6890827f17e6e753d5af4e10391e87ba04c82bf0 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Wed, 9 Oct 2013 08:35:15 +0400 Subject: [PATCH] Fix in MySQLiStatement.mapPlaceholders() Use strictly placeholder names started with A-z symbol. --- model/MySQLiStatement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/MySQLiStatement.php b/model/MySQLiStatement.php index 420f050..d26186f 100644 --- a/model/MySQLiStatement.php +++ b/model/MySQLiStatement.php @@ -38,7 +38,7 @@ class MySQLiStatement extends DbStatement protected function mapPlaceholders() { $matches = array(); - if(preg_match_all('/(\?|:[A-z0-9_]+)/u', $this->request, $matches, PREG_OFFSET_CAPTURE)) { + if(preg_match_all('/(\?|:[A-z][A-z0-9_]*+)/u', $this->request, $matches, PREG_OFFSET_CAPTURE)) { $noname = 0; foreach ($matches[0] as $id=>$match) { $match[2] = $matches[1][$id][0];