|
cvs: pear /DBA DBA.php package.xml: msg#00597php.cvs.pear
busterb Thu Sep 26 08:59:52 2002 EDT Modified files: /pear/DBA DBA.php package.xml Log: fix static exists() function again, renamed to db_exists() for consistency with the respective driver function name Index: pear/DBA/DBA.php diff -u pear/DBA/DBA.php:1.22 pear/DBA/DBA.php:1.23 --- pear/DBA/DBA.php:1.22 Thu Sep 26 01:18:06 2002 +++ pear/DBA/DBA.php Thu Sep 26 08:59:51 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA.php,v 1.22 2002/09/26 05:18:06 busterb Exp $ +// $Id: DBA.php,v 1.23 2002/09/26 12:59:51 busterb Exp $ // require_once('PEAR.php'); @@ -30,7 +30,7 @@ * dbm engine for installations where dba support is not included in PHP. * * @author Brent Cook <busterb@xxxxxxxxxxxxxxx> - * @version 0.9.3 + * @version 0.9.4 * @access public * @package DBA */ @@ -76,14 +76,12 @@ * @param string @driver driver to test for * @return boolean true if the database exists */ - function exists($name, $driver = 'file') + function db_exists($name, $driver = 'file') { if (!function_exists('dba_open') || ($driver=='file')) { - require_once 'DBA/Driver/File.php'; - return DBA_Driver_File::exists($name); + return (file_exists($name.'.dat') && file_exists($name.'.idx')); } elseif (($driver == 'db3') || ($driver == 'gdbm')){ - require_once 'DBA/Driver/Builtin.php'; - return DBA_Driver_Builtin::exists($name); + return file_exists($name); } else { return PEAR::raiseError('Unknown DBA driver, '.$driver); } Index: pear/DBA/package.xml diff -u pear/DBA/package.xml:1.22 pear/DBA/package.xml:1.23 --- pear/DBA/package.xml:1.22 Thu Sep 26 01:18:06 2002 +++ pear/DBA/package.xml Thu Sep 26 08:59:51 2002 @@ -20,15 +20,13 @@ <release> <license>LGPL</license> - <version>0.9.3</version> + <version>0.9.4</version> <date>2002-09-26</date> <state>beta</state> <notes> This release updates the driver constructors so that they call their base class's constructors. This makes PEAR's virtual destructor system function properly. -NOTE: The file driver appears to work incorrectly with the latest PHP CVS. I am -currently investigating the issue. For now, either use CVS from a few weeks -ago, or PHP up to 4.2.3. +NOTE: The file driver appears to work incorrectly with the latest PHP CVS. I am currently investigating the issue. For now, either use CVS from a few weeks ago, or PHP up to 4.2.3. Many of the functions that were included with the earlier developer releases, such as the table manager and SQL parser, have been split into separate packages to be released soon. </notes> -- PEAR CVS Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | cvs: pear /HTTP_Request Request.php: 00597, Richard Heyes |
|---|---|
| Next by Date: | cvs: pear /DBA_Relational Table.php package.xml: 00597, Brent Cook |
| Previous by Thread: | cvs: pear /PECL/smbc smbc.ci: 00597, Tal Peer |
| Next by Thread: | cvs: pear /DBA_Relational Table.php package.xml: 00597, Brent Cook |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |