Re: usage of sapi dependency in PEAR packages

From: Date: Sat, 08 May 2004 16:27:16 +0000
Subject: Re: usage of sapi dependency in PEAR packages
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-29023@lists.php.net to get a copy of this message
Thanks a lot Martin :) Laurent > On Sat May 08, 2004 at 06:0251PM +0200, Laurent Laville wrote: > > <dep type="sapi" rel="ne" version="cgi" > > optional="no">server API</dep> > > The only supported relation for the SAPI type is "has" at the moment. > > > was checked by PEAR::Dependency checkSAPI() method and returns a value such > > as : > > > > 'cli' SAPI backend not supported > > As also mentioned in the soure code, the problem with this is that there > is no way to figure out, which SAPI backends are "installed" on the > users system. > > > How may i verify that the web server is not in CGI interface, because the > > dependency > > if (php_sapi_name() == 'cgi') { > PEAR::raiseError("The CGI SAPI backend is not supported by HTML_Progress."); > } > > -- > - Martin Martin Jansen > http://martinjansen.com/ >

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