cvs: php4 /ext/dba/tests skipif.inc

From: Date: Wed, 06 Nov 2002 11:59:14 +0000
Subject: cvs: php4 /ext/dba/tests skipif.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-15852@lists.php.net to get a copy of this message
helly Wed Nov 6 06:59:14 2002 EDT Modified files: /php4/ext/dba/tests skipif.inc Log: -convert from dos to unix file -disallow cdb_make Index: php4/ext/dba/tests/skipif.inc diff -u php4/ext/dba/tests/skipif.inc:1.2 php4/ext/dba/tests/skipif.inc:1.3 --- php4/ext/dba/tests/skipif.inc:1.2 Sun Nov 3 10:22:32 2002 +++ php4/ext/dba/tests/skipif.inc Wed Nov 6 06:59:14 2002 @@ -1,12 +1,15 @@ -<?php - 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 (count($handler)==1) { - die('skip CDB currently supports only reading '); - } - } -?> +<?php + 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 (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'); + } + } +?>

« previous php.cvs (#15852) next »