From: Marcus Boerger Date: Fri, 15 Nov 2002 16:11:51 +0000 (+0000) Subject: Use flatfile if available. X-Git-Tag: RELEASE_1_0b2~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93769053cc915976fa00a04569a745b8e12efaa6;p=php Use flatfile if available. # This way we are using the internal library which we know about most. --- diff --git a/ext/dba/tests/skipif.inc b/ext/dba/tests/skipif.inc index 0501587035..141c907111 100644 --- a/ext/dba/tests/skipif.inc +++ b/ext/dba/tests/skipif.inc @@ -2,15 +2,19 @@ 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 (in_array('flatfile', $handler)) { + $handler = 'flatfile'; + } elseif ($handler[0]=='cdb') { // CDB currently supports only reading if (count($handler)==1) { die('skip CDB currently supports only reading'); } if ($handler[1]=='cdb_make' && count($handler)==2) { die('skip CDB currently supports only reading and creating'); } + $handler = $handler[1]; + } else { + $handler = $handler[0]; } - $HND = strtoupper($handler[0]); + $HND = strtoupper($handler); ?> diff --git a/ext/dba/tests/test.inc b/ext/dba/tests/test.inc index e280226f68..402096dbe9 100644 --- a/ext/dba/tests/test.inc +++ b/ext/dba/tests/test.inc @@ -1,8 +1,9 @@