<?php
require_once('skipif.inc');
if (!in_array('cdb', dba_handlers())) die('skip CDB handler not available');
+ die('skip CDB currently supports only reading');
?>
--FILE--
<?php
DBA CDB handler test (read only)
--SKIPIF--
<?php
- require_once('skipif.inc');
+ if (!extension_loaded('dba')) die('skip dba extension not available');
if (!in_array('cdb', dba_handlers())) die('skip CDB handler not available');
?>
--FILE--
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 ');
+ }
+ }
?>
<?php
$db_file = dirname(__FILE__).'/test0.dbm';
$handler = dba_handlers();
- $handler = $handler[0];
+ // CDB currently supports only reading
+ if ($handler[0]=='cdb') {
+ if (count($handler)==1) {
+ die('CDB currently supports only reading ');
+ }
+ $handler = $handler[1];
+ } else {
+ $handler = $handler[0];
+ }
?>