From e9c10acc76cac2efdc5341c9ad96362cf18bfa57 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 20 May 2003 22:28:10 +0000 Subject: [PATCH] Fix test (ssen by Dan Torop) --- ext/dba/tests/skipif.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/dba/tests/skipif.inc b/ext/dba/tests/skipif.inc index 1aa9b6a179..e75000fafd 100644 --- a/ext/dba/tests/skipif.inc +++ b/ext/dba/tests/skipif.inc @@ -7,8 +7,8 @@ if (in_array('flatfile', $handlers)) { $handler = 'flatfile'; } else { - $handler = array_diff($handlers, array('cdb', 'cdb_make')); /* these can only read OR write */ - if (count($handler)==0) { + $handlers = array_diff($handlers, array('cdb', 'cdb_make')); /* these can only read OR write */ + if (count($handlers)==0) { die('skip no handler available that can be used for the test'); } $handler = array_shift($handlers); -- 2.50.1