# libxml2 , sablotron combo tested?

- Thread: https://externals.io/message/2018
- Original archive: https://news-web.php.net/php.internals/2018
- Started by Adam Dickmeiss on 2003-05-26T18:39:19+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2018 — Adam Dickmeiss — 2003-05-26T18:39:19+00:00

URL: https://externals.io/message/2018#2018

Hi,

has anybody tried PHP5 head with the Sablotron , libxml2
combination? The configure would be Something like:
'./configure' \
'--enable-xslt' \
'--with-xslt-sablot=/usr/local' \
...

-- Adam

-- 
Adam Dickmeiss  mailto:adam@indexdata.dk  http://www.indexdata.dk
Index Data      T: +45 33410100           Mob.: 212 212 66

---

## #2021 — Adam Dickmeiss — 2003-05-26T21:26:55+00:00

URL: https://externals.io/message/2018#2021 · In reply to: #2018

OK,

I take it that none have testet it. I for one cannot get it to
work reliably. I'm using Apache 1.3.27 (compiled from source),
Sablotron 0.98 (compiled from source), libxml2.4.19 (Debian 3.0 package),
Expat 1.95.2 (Debian 3.0 package).

On Apache startup - when - PHP is loaded the process receives a
SEGV in malloc.

It is quite hard to trace this one down.
valgrind bin/httpd -X
shows nothing and actually works!

I believe the error is due to the expat compat module conflicting
with Sablotron's "own" expat. Sablotron is linked with system
wide Expat. And PHP's new Expat compat module defines the same
symbols. That, I think, results in bad behaviour.

The fix is easy: ensure that Expat compat does not introduce
the same symbols as Real expat.

The attached patch does that.

-- Adam


> Hi,
> 
> has anybody tried PHP5 head with the Sablotron , libxml2
> combination? The configure would be Something like:
> './configure' \
> '--enable-xslt' \
> '--with-xslt-sablot=/usr/local' \
> ...
> 
> -- Adam
> 
> -- 
> Adam Dickmeiss  mailto:adam@indexdata.dk  http://www.indexdata.dk
> Index Data      T: +45 33410100           Mob.: 212 212 66
