summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/tests/bug_45120.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo_mysql/tests/bug_45120.phpt')
-rw-r--r--ext/pdo_mysql/tests/bug_45120.phpt22
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/pdo_mysql/tests/bug_45120.phpt b/ext/pdo_mysql/tests/bug_45120.phpt
index bc2ea76629..b281a6a354 100644
--- a/ext/pdo_mysql/tests/bug_45120.phpt
+++ b/ext/pdo_mysql/tests/bug_45120.phpt
@@ -15,20 +15,20 @@ $db = PDOTest::test_factory(__DIR__ . '/common.phpt');
function bug_45120($db) {
- $stmt = $db->prepare("SELECT 1 AS 'one'");
- if (true !== $stmt->execute())
- printf("[001] Execute has failed: %s\n", var_export($stmt->errorInfo(), true));
+ $stmt = $db->prepare("SELECT 1 AS 'one'");
+ if (true !== $stmt->execute())
+ printf("[001] Execute has failed: %s\n", var_export($stmt->errorInfo(), true));
- $res = $stmt->fetch(PDO::FETCH_ASSOC);
- if ($res['one'] != 1)
- printf("[002] Wrong results: %s\n", var_export($res, true));
+ $res = $stmt->fetch(PDO::FETCH_ASSOC);
+ if ($res['one'] != 1)
+ printf("[002] Wrong results: %s\n", var_export($res, true));
- if (true !== $stmt->execute())
- printf("[003] Execute has failed: %s\n", var_export($stmt->errorInfo(), true));
+ if (true !== $stmt->execute())
+ printf("[003] Execute has failed: %s\n", var_export($stmt->errorInfo(), true));
- $res = $stmt->fetch(PDO::FETCH_ASSOC);
- if ($res['one'] != 1)
- printf("[004] Wrong results: %s\n", var_export($res, true));
+ $res = $stmt->fetch(PDO::FETCH_ASSOC);
+ if ($res['one'] != 1)
+ printf("[004] Wrong results: %s\n", var_export($res, true));
}