[dev] Driver capability assertions

Jon Parise jon@csh.rit.edu
Sat, 17 Feb 2001 16:10:06 -0500


On Fri, Feb 16, 2001 at 10:38:06PM -0500, Rich Lafferty wrote:

> > I was thinking of adding capability assertions to those drivers that
> > require non-standard PHP extensions.  For example, I might add
> > something like this to all of the LDAP drivers:
> > 
> >     if (!function_exists('ldap_connect')) {
> >         echo 'LDAP support is required by this driver.';
> >         exit;
> >     }
> 
> I like this. :-)
  
Agreed.  I'm working on this approach now.

-- 
Jon Parise (jon@csh.rit.edu)  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member