1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-08 15:16:58 +02:00

implemented PCRE error checking and PcreException

This commit is contained in:
David Grudl
2010-05-16 22:06:29 +02:00
parent 555e825bb2
commit 553f7da5f9
4 changed files with 28 additions and 5 deletions

View File

@@ -159,6 +159,8 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver
{
$res = array();
preg_match_all('#(.+?): +(\d+) *#', mysqli_info($this->connection), $matches, PREG_SET_ORDER);
if (preg_last_error()) throw new PcreException;
foreach ($matches as $m) {
$res[$m[1]] = (int) $m[2];
}