"Optional" dependencies

From: Date: Sun, 11 May 2003 19:40:59 +0000
Subject: "Optional" dependencies
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16157@lists.php.net to get a copy of this message
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? -- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

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