diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-08-07 13:02:23 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-08-07 13:04:13 +0200 |
commit | ae91f8572e84431aec4856f14c727f5ef8b33eb3 (patch) | |
tree | bdd5ae453fd372012a07467b66a39b9b93bb9e33 /ext/pdo_pgsql/tests | |
parent | 886be260cb5236cdef69bb3a1125d5e6860ffe1e (diff) | |
download | php-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.phpt | 1 |
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(); |