On Sun, 2002-05-26 at 11:18, Stig S. Bakken wrote:
> On Sat, 2002-05-25 at 19:03, Andi Gutmans wrote:
> > At 09:52 25/05/2002 -0700, Rasmus Lerdorf wrote:
> > >This stuff is in the works.  The current pear tool only works with
> > >php-based pear packages, but it will soon get a wrapper that will phpize
> > >and build extensions for you with proper dependency checking.
> > 
> > Great, but I'd still like to have a KISS mechanism for C extensions like I 
> > mentioned which would work without phpize but copy to ext/ and then do a 
> > buildconf. I see this as the mechanism which would allow us to move certain 
> > extensions out of ext/.
> > I've mentioned this to Stig in the past so he might have it on his TODO.
> 
> There are two "KISS" perspectives here, consider these two "user
> stories":
> 
> 1. The user is about to install PHP from source, and wants to include
> xyzzy support, which is in PECL only.  He would then have to import the
> xyzzy sources into his source tree and re-run autoconf and autoheader:
> 
> $ pear import-source xyzzy
> $ autoconf
> $ autoheader
> 
> The rest is plain configure routine.
> 
> 2. The user has already installed PHP, but needs to upgrade his xyzzy
> extension.  However, the PHP version that bundles the xyzzy he needs
> introduces a non-BC feature in another bundled extension, so the user
> doesn't want to upgrade PHP itself.  However, since he build PHP with
> xyzzy as a shared extension, he can upgrade it easily:
> 
> $ pear upgrade xyzzy
> 
> This downloads the source, runs phpize, runs configure (possibly
> prompting for options), and replaces the old xyzzy.so file.

I meant to mention that these two examples are actually mutually
exclusive, since you can't upgrade an extension if you built it
statically into PHP.  We could solve that by flipping the default
extension build from static to shared, so you have to do
"--with-xyzzy=static,/usr" instead to get the static version (in which
case PEAR would lock that extension from upgrades).

 - Stig


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to