cvs: pear /DBA DBA.php

From: Date: Thu, 06 Feb 2003 03:12:03 +0000
Subject: cvs: pear /DBA DBA.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8726@lists.php.net to get a copy of this message
busterb Wed Feb 5 22:12:03 2003 EDT Modified files: /pear/DBA DBA.php Log: fix for case where PHP's built-in DBA support does not exist Index: pear/DBA/DBA.php diff -u pear/DBA/DBA.php:1.34 pear/DBA/DBA.php:1.35 --- pear/DBA/DBA.php:1.34 Fri Jan 10 20:59:45 2003 +++ pear/DBA/DBA.php Wed Feb 5 22:12:03 2003 @@ -21,7 +21,7 @@ // | Olaf Conradi <conrado@drake.bt.co.uk> | // +----------------------------------------------------------------------+ // -// $Id: DBA.php,v 1.34 2003/01/11 01:59:45 busterb Exp $ +// $Id: DBA.php,v 1.35 2003/02/06 03:12:03 busterb Exp $ // require_once('PEAR.php'); @@ -221,7 +221,11 @@ */ function getDriverList() { - return array_merge(dba_handlers(), array('file')); + if (function_exists('dba_handlers')) { + return array_merge(dba_handlers(), array('file')); + } else { + return array('file'); + } } }

« previous php.pear.cvs (#8726) next »