]> granicus.if.org Git - php/commitdiff
#i shouldn't do test-fiddling after 3o-clock
authorMarcus Boerger <helly@php.net>
Tue, 6 May 2003 09:33:40 +0000 (09:33 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 6 May 2003 09:33:40 +0000 (09:33 +0000)
ext/dba/tests/skipif.inc

index 5612e682a3062a2e6da561fe99a34e50b8cce5ce..1aa9b6a179e845b8ecb2b322fb83daa260cc1051 100644 (file)
@@ -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())) {