Re: cvs: php-src /ext/xml compat.c expat_compat.h
| From: | Christian Stocker | Date: | Sun, 22 Feb 2004 18:46:46 +0000 |
| Subject: | Re: cvs: php-src /ext/xml compat.c expat_compat.h | ||
| References: | 1 2 3 4 5 6 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-26324@lists.php.net to get a copy of this message | ||
On 2/22/04 7:36 PM, Sterling Hughes wrote:
It's not only about default namespaces, also same prefix for different namespaceURI isn't supported [1]. AFAIK, the whole homegrown NS lookup routine would need a rewrite, which just isn't worth it IMHO, if there's an easy solution in 2.6..Mmmh too bad, will try to find a solution for libxml2 < 2.6 I know, it's late in the release process, but the "old" implementation didn't recognise default namespaces, which broke quite some ext/xml scripts from php4 days and I'd like to have fixed that before 5.0.0In the meantime either add #ifdef configure checks or revert it out. Recognizing default namespaces shouldn't be hard to hack in to the code that was there, it just requires a bit of a rethink,
and I believe we're set on supporting libxml2.5, right?Mmmh, Rob had some reasons for better stick to 2.5 than 2.6 for the time being. Maybe he can tell us more about this issue chregu [1] <a xmlns:bar="http://example.com/bar"> <bar:b /> <bar:c xmlns:bar="http://example.com/foo"/> </a> returns http://example.com/bar as the namespaceURI of node "c" in ext/xml
-Sterling-- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECBchregu On 2/22/04 7:34 PM, Rob Richards wrote:This change requires libxml 2.6 in order to work (and compile). Rob On Sunday 22 February 2004 01:05 pm, Christian Stocker wrote:-- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECBHi mmmh, forget about that... I used 2.6.2, will test on 2.5.10 later chregu On 2/22/04 6:55 PM, Sterling Hughes wrote:What version of libxml2 does this rely on?