ID: 28710 Comment by: bnowack at appmosphere dot com Reported By: mail at d-westphal dot de Status: Open Bug Type: XML related Operating System: WIN32 PHP Version: 5CVS-2004-06-09 (dev) New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [2004-06-10 10:56:21] 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-09 17:19:11] 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-09 16:56:37] [EMAIL PROTECTED] This is not a real bug in PHP, you'll just have to use libxml2 2.6. ------------------------------------------------------------------------ [2004-06-09 16:22:20] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28710&edit=1