summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/tests
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-08-07 13:02:23 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-08-07 13:04:13 +0200
commitae91f8572e84431aec4856f14c727f5ef8b33eb3 (patch)
treebdd5ae453fd372012a07467b66a39b9b93bb9e33 /ext/pdo_pgsql/tests
parent886be260cb5236cdef69bb3a1125d5e6860ffe1e (diff)
downloadphp-git-ae91f8572e84431aec4856f14c727f5ef8b33eb3.tar.gz
Skip test if ext/json is not available
Otherwise the test fails.
Diffstat (limited to 'ext/pdo_pgsql/tests')
-rw-r--r--ext/pdo_pgsql/tests/bug71885_2.phpt1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo_pgsql/tests/bug71885_2.phpt b/ext/pdo_pgsql/tests/bug71885_2.phpt
index f98e9ef785..f957a39610 100644
--- a/ext/pdo_pgsql/tests/bug71885_2.phpt
+++ b/ext/pdo_pgsql/tests/bug71885_2.phpt
@@ -3,6 +3,7 @@ Request #71855 (PDO placeholder escaping, part 2)
--SKIPIF--
<?php
if (!extension_loaded('pdo') || !extension_loaded('pdo_pgsql')) die('skip not loaded');
+if (!extension_loaded('json')) die('skip json extension not available');
require_once dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
require_once dirname(__FILE__) . '/config.inc';
PDOTest::skip();