Re: package.xml: depend on PHP_Compat on windows with php < 5.3

From: Date: Mon, 24 Nov 2008 14:11:52 +0000
Subject: Re: package.xml: depend on PHP_Compat on windows with php < 5.3
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-51129@lists.php.net to get a copy of this message
On Sat, Nov 22, 2008 at 3:27 AM, Christian Weiske <cweiske@cweiske.de>wrote: > Hi all, > > Our docbook renderer, phd, works on Windows - but only with PHP 5.3 since > it uses getopt(). > PHP_Compat provides a getopt() implementation. So we would need a > package.xml dependency that tells pear to install PHP_Compat when it's on > Windows and PHP is < 5.3. Is that possible? How? > Seems like this question has come up before a couple of times, and from what I remember, it's *not* possible to construct a combination constraint of OS+PHP like the one above, at least not with the regular dependency tags. I suppose it would be possible to have some post-install script that would do a follow-up check *after* the installation, but I don't know enough about the post-install scripts to know if it has the power to then install PHP_Compat. -- CRB

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