Re: PEAR::DB, backends and assertExtension

From: Date: Sun, 14 Oct 2001 12:56:16 +0000
Subject: Re: PEAR::DB, backends and assertExtension
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2282@lists.php.net to get a copy of this message
On Sun, Oct 14, 2001 at 02:43:51PM +0200, Stig S. Bakken wrote : > > .) Why do have php extension names and pear::db backends > > different names? E.g. 'informix' => 'ifx' ? > > Not sure about this one. It applies to ifx (Tomas) and ibase > (Sterling). > > > .) What do you think about a static method of DB which returns an > > array of all supported db extension and a function which > > returns only currently installed extensions ? > > > > array DB::supported_extensions(); > > > > Either return a fixed array which has to be maintained > > or make it magic to scan through DB/ > > > > and > > > > array DB::installed_extensions(); > > > > Which also tries to load missing compiled-in extensions > > so the result is accurat. > > We can do that if the DB backends are renamed to match the extensions. +1 Better do it now than too late. It's easy then to do magic and ignore common.php and storage.php. Hm .. what are we waiting for ? :) - Markus

« previous php.pear.dev (#2282) next »