With PHP5 as of today, a "clean" configure - with just --with-apxs
compiles PHP5 with a bundled libxml2. That can't be right? I have libxml2-dev installed. Do I really have to use --without-bundle-libxml
to make a sane installation?
-- Adam
--
Adam Dickmeiss mailto:adam@indexdata.dk http://www.indexdata.dk Index Data T: +45 33410100 Mob.: 212 212 66
With PHP5 as of today, a "clean" configure - with just --with-apxs
compiles PHP5 with a bundled libxml2. That can't be right? I have libxml2-dev installed. Do I really have to use --without-bundle-libxml
to make a sane installation?
Yep. We default to using the bundle, just like we do with expat, or mysql, gd, or any other piece of software we bundle.
-Sterling
--
"Reductionists like to take things apart. The rest of us are just trying to get it together."
- Larry Wall, Programming Perl, 3rd Edition
Quoted text · 6 lines
With PHP5 as of today, a "clean" configure - with just --with-apxs
compiles PHP5 with a bundled libxml2. That can't be right? I have libxml2-dev installed. Do I really have to use --without-bundle-libxml
to make a sane installation?Yep. We default to using the bundle, just like we do with expat, or mysql, gd, or any other piece of software we bundle.
Default or force:) Is it possible to use system wide libxml2 for XML parsing in PHP?
What options should I use?
-- Adam
Quoted text · 5 lines
-Sterling
--
"Reductionists like to take things apart. The rest of us are just trying to get it together."
- Larry Wall, Programming Perl, 3rd Edition--
--
Adam Dickmeiss mailto:adam@indexdata.dk http://www.indexdata.dk Index Data T: +45 33410100 Mob.: 212 212 66
Quoted text · 5 lines
With PHP5 as of today, a "clean" configure - with just --with-apxs
compiles PHP5 with a bundled libxml2. That can't be right? I have libxml2-dev installed. Do I really have to use --without-bundle-libxml
to make a sane installation?Yep. We default to using the bundle, just like we do with expat, or mysql, gd, or any other piece of software we bundle.
Ok, here we go again..
I still have not seen any good reason to bundle. You state at http://edwardbear.org/blog/ that libxml2 is bundled because expat is bundled. Is that the best argument?
You want people to switch to a more "modern" interface. The new interface apparently breaks BC in multiple ways (that's not your fault, the tools are just different). How about unbundling expat and let people choose with configure what of those libs they want to use. That solution will both make configure for PHP easier to use and save you from updating the bundled software (for security updates, for example).
-- Adam
Quoted text · 4 lines
-Sterling
--
"Reductionists like to take things apart. The rest of us are just trying to get it together."
- Larry Wall, Programming Perl, 3rd Edition
--
Adam Dickmeiss mailto:adam@indexdata.dk http://www.indexdata.dk Index Data T: +45 33410100 Mob.: 212 212 66
Quoted text · 7 lines
With PHP5 as of today, a "clean" configure - with just --with-apxs
compiles PHP5 with a bundled libxml2. That can't be right? I have libxml2-dev installed. Do I really have to use --without-bundle-libxml
to make a sane installation?Yep. We default to using the bundle, just like we do with expat, or mysql, gd, or any other piece of software we bundle.
Ok, here we go again..I still have not seen any good reason to bundle. You state at http://edwardbear.org/blog/ that libxml2 is bundled because expat is bundled. Is that the best argument?
You want people to switch to a more "modern" interface. The new interface apparently breaks BC in multiple ways (that's not your fault, the tools are just different). How about unbundling expat and let people choose with configure what of those libs they want to use. That solution will both make configure for PHP easier to use and save you from updating the bundled software (for security updates, for example).
Most of those ways can be fixed, the unfixables are relatively minor. As for unbundling, I've repeatedly said. Unbundle expat, and I'm fine with unbundling libxml2 (I speak only for myself though). The point is, if we only bundle expat, then expat becomes the defacto library, we can't deprecate it. People will develop both extensions and user space solutions for expat's functionality and expat doesn't currently doesn't come close to meeting our needs.
-Sterling
--
"Science is like sex: sometimes something useful comes out, but that is not the reason we are doing it." - Richard Feynman
I still have not seen any good reason to bundle. You state at http://edwardbear.org/blog/ that libxml2 is bundled because expat is bundled. Is that the best argument?
You want people to switch to a more "modern" interface. The new interface apparently breaks BC in multiple ways (that's not your fault, the tools are just different). How about unbundling expat and let people choose with configure what of those libs they want to use. That solution will both make configure for PHP easier to use and save you from updating the bundled software (for security updates, for example).
I agree 100% (and if I'm not mistaken Sterling does too).
Derick
--
"my other box is your windows PC"
Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/
I still have not seen any good reason to bundle. You state at http://edwardbear.org/blog/ that libxml2 is bundled because expat is bundled. Is that the best argument?
You want people to switch to a more "modern" interface. The new interface apparently breaks BC in multiple ways (that's not your fault, the tools are just different). How about unbundling expat and let people choose with configure what of those libs they want to use. That solution will both make configure for PHP easier to use and save you from updating the bundled software (for security updates, for example).
I agree 100% (and if I'm not mistaken Sterling does too).
At least he did agree in Amsterdam about it. :)
Just unbundle everything and let people decided for themselves
what they want to use..
--Jani
With PHP5 as of today, a "clean" configure - with just --with-apxs
compiles PHP5 with a bundled libxml2. That can't be right? I have libxml2-dev installed. Do I really have to use --without-bundle-libxml
to make a sane installation?
Yup, feel free to unbundle libxml again :)
Derick
--
"my other box is your windows PC"
Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
Derick Rethans wrote:
Yup, feel free to unbundle libxml again :)
Why not simply drop all bundled libraries (maybe libmysql beeing the only exception (for historic reasons)) and just require libxml2, pcre, etc.?
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/
Adam Dickmeiss adam@indexdata.dk wrote:
With PHP5 as of today, a "clean" configure - with just --with-apxs
compiles PHP5 with a bundled libxml2. That can't be right? I have libxml2-dev installed. Do I really have to use --without-bundle-libxml
to make a sane installation?
Unless you specify either option, both libraries will be built and then libxml support will be preferred automatically.
Moriyoshi