php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28710 missing xml_create_parser_ns in win32-binary ->major Problem for RDF API Project
Submitted: 2004-06-09 16:22 UTC Modified: 2004-06-10 16:20 UTC
Votes:3
Avg. Score:3.3 ± 1.7
Reproduced:0 of 1 (0.0%)
From: mail at d-westphal dot de Assigned: rrichards (profile)
Status: Closed Package: XML related
PHP Version: 5CVS-2004-06-09 (dev) OS: WIN32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mail at d-westphal dot de
New email:
PHP Version: OS:

 

 [2004-06-09 16:22 UTC] mail at d-westphal dot de
Description:
------------
Hello,

my name is Daniel Westphal and I'm working at the "RDF API FOR PHP"(RAP) - Project (http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/ ,
http://sourceforge.net/projects/rdfapi-php/ ). RAP is
the leading PHP toolkit for parsing, searching,manipulating, serializing and serving RDF models.

We checked the compatibility of our code with the new php5/zend2 engine(PHP Version 5.0.0RC3RC2) and encountered problems when trying to use our xml/rdf-parser. Our rdf-parser uses the SAX xml_create_parser_ns function and works well with php 4.3.7.

I read a blog (http://blog.bitflux.ch/p1658.html) and a thread at php-cvs (http://marc.theaimsgroup.com/?l=php-cvs&m=107749629522874&w=2)
which was dealing with this problem of using libxml2 2.5.11 and not 2.6.x  and  the mentioned function. The discussion seems to end with credo, that no one is using this parser with namespace support and so it's just a minor problem and not required to be fixed until the 5.0 release.

But it's major problem for our project and its users!

Our users (about 1200 downloads yet) use RAP mainly on servers where they are having no possibility to manual upgrade to a higher libxml2 version, because of missing administrator-rights.  Thus it is esential for our project to have a working  xml_create_parser_ns function in the standard PHP5 release.

So it would be great (and highly appriciated by the PHP RDF community) if somebody could have a look and get the function working again.


Thanks and cheers,

Daniel

Actual result:
--------------
Warning: xml_parser_create_ns() [function.xml-parser-create-ns]: is broken with libxml2 2.5.11. Please upgrade to libxml2 2.6 in C:\!htdocs\rdfapi-php\api\syntax\RdfParser.php on line 2218

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-09 16:56 UTC] derick@php.net
This is not a real bug in PHP, you'll just have to use libxml2 2.6.
 [2004-06-09 17:19 UTC] mail at d-westphal dot de
Hi Derick,
you're totally right, the problem is the compiled win32 distribution (it ships with libxml2 2.5.11 already compiled in). But if the 5.0 win32/binary-release will still contain only the 2.5.11 libxml2, then all php-apps using the xml_parser_create_ns command will stop working under win-systems (and i don't guess lots of people will (or can) self-compile under windows, when there's a win32/binary-distribution) !

Please correct me if I'm wrong or shift the bug-report to the right category

Thanks and cheers,

Daniel
 [2004-06-10 10:56 UTC] chris at bizer dot de
Hi,

I think the main point here is that administrators of cheap public webservers usually install the standard PHP distribution and that if this distribution doesn't contain an up-to-date xmllib then XML-based PHP applications don't work on public web servers. 

This contradicts the main argument for using PHP for XML-based applications, which is: Your application will run on 14 million servers.

Cheers,
Chris
 [2004-06-10 12:13 UTC] bnowack at appmosphere dot com
The xml_parser_create_ns function is a MUST for efficient parsing of W3Cs RDF/XML-based formats. RDF has a quite complicated XML serialization, which already makes it hard to build *really fast* parsers. I don't know if this bug would affect (hosted) linux systems as well, but if we had to move namespace handling from the native code to interpreted PHP, I guess that would be very painful in terms of performance.

thanx,
benjamin
 [2004-06-10 15:28 UTC] chregu@php.net
As if "Cheap Public Webservers" are running Windows ... 
There's no bundled libxml2 for other operating systems..

Anyway, Rob (our main libxml2 Windows guy) is looking 
into it, so no need to further complain here ;)

 [2004-06-10 16:20 UTC] mail at d-westphal dot de
Thanx alot !

cheers 
daniel
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC