Re: "Optional" dependencies

From: Date: Mon, 12 May 2003 16:45:18 +0000
Subject: Re: "Optional" dependencies
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16191@lists.php.net to get a copy of this message
On Sun May 11, 2003 at 03:4059PM -0400, Jon Parise wrote: > Right now, there's no way to register an optional dependency for a > PEAR package (i.e. a dependency that may not be required but can be > utilized). An example is the Net_SMTP package using the Auth_SASL > authentication routines if they are available (or, more correctly, > disabling certain routines if it's not available): > > if ((@include_once 'Auth/SASL.php') === false) { > /* Disable functions */ > } > > Currently, there's no standard way to inform the user that having the > Auth_SASL package installed will enhance the Net_SMTP package's > capabilities. > > Thoughts on this? I once started implementing optional dependencies, but got lost somewhere. Perhaps Stig can comment whether he is working on something along the lines? -- - Martin Martin Jansen http://martinjansen.com/

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