From ea7b5d41d3d79f336eb6013c0778a36dc35a5d69 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 3 Nov 2002 15:22:32 +0000 Subject: [PATCH] cdb interface is currently readonly --- ext/dba/tests/dba_cdb.phpt | 1 + ext/dba/tests/dba_cdb_read.phpt | 2 +- ext/dba/tests/skipif.inc | 7 +++++++ ext/dba/tests/test.inc | 10 +++++++++- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ext/dba/tests/dba_cdb.phpt b/ext/dba/tests/dba_cdb.phpt index 88873e917e..c1828f550e 100644 --- a/ext/dba/tests/dba_cdb.phpt +++ b/ext/dba/tests/dba_cdb.phpt @@ -4,6 +4,7 @@ DBA CDB handler test --FILE-- --FILE-- diff --git a/ext/dba/tests/skipif.inc b/ext/dba/tests/skipif.inc index 9a35e1e06b..3dc7157fe0 100644 --- a/ext/dba/tests/skipif.inc +++ b/ext/dba/tests/skipif.inc @@ -2,4 +2,11 @@ if (!extension_loaded('dba')) die('skip dba extension not available'); if (!function_exists('dba_handlers')) die ('skip dba_handlers() not available'); if (!sizeof(dba_handlers())) die('skip no handlers installed'); + // CDB currently supports only reading + $handler = dba_handlers(); + if ($handler[0]=='cdb') { + if (count($handler)==1) { + die('skip CDB currently supports only reading '); + } + } ?> diff --git a/ext/dba/tests/test.inc b/ext/dba/tests/test.inc index 3ca3a49194..768fc8dac5 100644 --- a/ext/dba/tests/test.inc +++ b/ext/dba/tests/test.inc @@ -1,5 +1,13 @@ -- 2.50.1