Re: cvs: pecl /phar package.xml
| From: | Greg Beaver | Date: | Thu, 17 Jan 2008 21:08:38 +0000 |
| Subject: | Re: cvs: pecl /phar package.xml | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pecl.cvs |
| Request: | Send a blank email to pecl-cvs+get-9548@lists.php.net to get a copy of this message | ||
Steph Fox wrote:
I've already compiled it successfully on my laptop. See this excerpt of config.w32 if (PHP_PHAR != "no") { EXTENSION("phar", "tar.c zip.c stream.c dirstream.c func_interceptors.c phar.c phar_object.c phar_path_check.c"); ADD_EXTENSION_DEP('phar', 'zip'); zip is required to build phar. There is, however, a bug in confutils.js which does not error out in ADD_EXTENSION_DEP() if the extension is not present in configure. On unix, ADD_EXTENSION_DEP() with a required extension halts the build if it isn't present. It's a simple fix, but I will post to internals prior to commit. GregIt's not possible to make zip optional on windows, it's either available or not available, because dll loading looks for all symbols that could possibly be needed at the time of dll load. As such, I don't see any point in making it possible to disable zip support since zip is enabled by default on windows, and so phar can reliably expect it to be there.Zip isn't enabled by default on windows. In fact I don't see how your changes can't break the Windows build since you're now not testing for the presence of ext/zip prior to using its headers.In short, as far as I'm concerned, the config.m4/w32 business is concluded to the best of each respective OSes ability and to the best possible benefit of endusers. The only other alternative is disabling zip support altogether on windows, which I'm not interested in doing, since the current setup works.The setup you had yesterday worked fine. This one's unlikely to.