From: Marcus Boerger Date: Tue, 20 May 2003 22:28:29 +0000 (+0000) Subject: MFH: Fix test (ssen by Dan Torop) X-Git-Tag: BEFORE_FD_REVERT~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cb2b8e1fe373e84a0360ab21b6e25957e3371be;p=php MFH: Fix test (ssen by Dan Torop) --- 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);