Re: PCRE/Extended-POSIX portability in PEAR packages

From: Date: Sun, 22 Aug 2004 18:38:12 +0000
Subject: Re: PCRE/Extended-POSIX portability in PEAR packages
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32821@lists.php.net to get a copy of this message
Daniel Convissor wrote:
On Sun, Aug 22, 2004 at 12:32:15PM -0400, Philippe Jausions wrote:
1. Make the package dependent on the PCRE extension, But then we can't use a package that use preg_* in the situation above.
Ding!
So your solution, is "no" solution ;-) I think that would be a shame to not make any effort to correct this simple problem... Note that sometimes PCRE is required because using "advanced" regex, so dependencies on extension should be marked to not give false hope to a user of the package. My question was really how to make it portable in the PEAR framework. What would be the best approach when both preg_* or ereg_* could be used. The dilema is code re-use vs. package dependency. -Philippe

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