Stanislav Malyshev wrote:
> I am trying to build php 5.2 on Windows with Visual. So far I managed to
> build everything except for libxml2 dependencies, which do not seem to
> work. So could anyone please clarify the following matters:
> 1. What libxml2 version is required for 5.2 build?
>
2.6.26 built using the LIBXML_STATIC_FOR_DLL flag.
> 2. Should 5.2 build use static or dynamic (dll) version of libxml2?
>
It should be using the static version included from:
http://ctindustries.net/libxml/. The library was not renamed as to
minimize the change.
> 3. libxml.c seems to use symbol xmlDllMain - which is built in libxml2
> only when LIBXML_STATIC_FOR_DLL symbol is defined, however standard
> builds of libxml2 never define this symbol, at least in latest version
> 2.6.26.
>
I am working on getting this lib built by default within the standard
release. At that time, I will change the required lib as I have proposed
to name it libxml2_a_dll.lib.
> 4. General question - PHP 5 requires a number of libraries that PHP 4
> did not, such as iconv, libxml2, etc. However, these libraries are not
> included in win32build package, and also binaris available online not
> always work cleanly with PHP. Would not it be good to update this
> package with all binaries needed to build standard PHP 5?
>
This would require the win32build package to be versioned so that the
correct version of libxml2 is used (needs to support the symbols being
exported from the .def file).
Rob