summaryrefslogtreecommitdiff
path: root/ext/dba/tests
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-05-06 09:33:40 +0000
committerMarcus Boerger <helly@php.net>2003-05-06 09:33:40 +0000
commit34a36c466e346601fe61e938b7d6897e6a365cbd (patch)
tree1989eeeda67d018d1c471d194f1f1753614498c5 /ext/dba/tests
parent4c8e30eccc62c6fb391d59de23fa657c93ba24cb (diff)
downloadphp-git-34a36c466e346601fe61e938b7d6897e6a365cbd.tar.gz
#i shouldn't do test-fiddling after 3o-clock
Diffstat (limited to 'ext/dba/tests')
-rw-r--r--ext/dba/tests/skipif.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dba/tests/skipif.inc b/ext/dba/tests/skipif.inc
index 5612e682a3..1aa9b6a179 100644
--- a/ext/dba/tests/skipif.inc
+++ b/ext/dba/tests/skipif.inc
@@ -7,11 +7,11 @@
if (in_array('flatfile', $handlers)) {
$handler = 'flatfile';
} else {
- $handler = array_diff($handler, array('cdb', 'cdb_make')); /* these can only read OR write */
+ $handler = array_diff($handlers, array('cdb', 'cdb_make')); /* these can only read OR write */
if (count($handler)==0) {
die('skip no handler available that can be used for the test');
}
- $handler = array_shift($handler);
+ $handler = array_shift($handlers);
}
} else {
if (!in_array($handler, dba_handlers())) {