ID: 44225
Updated by: rrichards@php.net
Reported By: daniel dot oconnor at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Windows
PHP Version: 5.2.5
New Comment:
This has already been done. Download a snap build if you want the newer
versions (libxml2 2.6.31 and libxslt 1.1.22). Next release will also
include these.
Previous Comments:
------------------------------------------------------------------------
[2008-02-23 06:01:14] daniel dot oconnor at gmail dot com
Description:
------------
Any chance of getting the version of libxml, libxslt, libexslt bumped
higher for windows builds?
Something around the libxml 2.6.30, libxslt 10122 and libexslt 813
mark?
The current bundled libraries produce incorrect XSLT results.
This in turn blocks implementing a php grddl implementation that
properly conforms to the spec (http://www.w3.org/2004/01/rdxh/spec)
Reproduce code:
---------------
<?php
$xml =
"http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithMoreThanOneGrddlTransformation.html";
$stylesheet = "http://www.w3.org/2001/sw/grddl-wg/td/getAuthor.xsl";
$dom = new DOMDocument('1.0');
$dom->load($xml);
$xsl = new DOMDocument();
$xsl->load($stylesheet);
$proc = new XSLTProcessor();
$proc->importStyleSheet($xsl);
print $proc->transformToXML($dom);
phpinfo(8);
Expected result:
----------------
C:\>xsltproc http://www.w3.org/2001/sw/grddl-wg/td/getAuthor.xsl
http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithMoreThanOneGrddlTransformation.html
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<rdf:Description rdf:about="">
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/"
rdf:parseType="Resource">
<foaf:homepage rdf:resource="http://www.w3.org/People/Dom/"/>
</dc:creator>
</rdf:Description>
</rdf:RDF>
C:\>xsltproc --version
Using libxml 20630, libxslt 10122 and libexslt 813
xsltproc was compiled against libxml 20630, libxslt 10122 and libexslt
813
libxslt 10122 was compiled against libxml 20630
libexslt 813 was compiled against libxml 20630
Actual result:
--------------
Warning: XSLTProcessor::transformToXml(): Undefined namespace prefix in
C:\old-libxml.php on line 15
Warning: XSLTProcessor::transformToXml(): xmlXPathEval: evaluation
failed in C:\old-libxml.php on line 15
Warning: XSLTProcessor::transformToXml(): Undefined namespace prefix in
C:\old-libxml.php on line 15
Warning: XSLTProcessor::transformToXml(): xmlXPathEval: evaluation
failed in C:\old-libxml.php on line 15
Warning: XSLTProcessor::transformToXml(): Undefined namespace prefix in
C:\old-libxml.php on line 15
Warning: XSLTProcessor::transformToXml(): xmlXPathEval: evaluation
failed in C:\old-libxml.php on line 15
Warning: XSLTProcessor::transformToXml(): Undefined namespace prefix in
C:\old-libxml.php on line 15
Warning: XSLTProcessor::transformToXml(): xmlXPathEval: evaluation
failed in C:\old-libxml.php on line 15
Warning: XSLTProcessor::transformToXml(): Undefined namespace prefix in
C:\old-libxml.php on line 15
Warning: XSLTProcessor::transformToXml(): xmlXPathEval: evaluation
failed in C:\old-libxml.php on line 15
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<rdf:Description rdf:about="">
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/"
rdf:parseType="Resource">
<foaf:homepage rdf:resource="/"/>
</dc:creator>
</rdf:Description>
<rdf:Description rdf:about="">
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/"
rdf:parseType="Resource">
<foaf:homepage rdf:resource="simpleTransform.xsl"/>
</dc:creator>
</rdf:Description>
<rdf:Description rdf:about="">
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/"
rdf:parseType="Resource">
<foaf:homepage rdf:resource="getAuthor.xsl"/>
</dc:creator>
</rdf:Description>
<rdf:Description rdf:about="">
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/"
rdf:parseType="Resource">
<foaf:homepage rdf:resource="http://www.w3.org/People/Dom/"/>
</dc:creator>
</rdf:Description>
<rdf:Description rdf:about="">
<dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/"
rdf:parseType="Resource">
<foaf:homepage rdf:resource="mailto:dom@w3.org"/>
</dc:creator>
</rdf:Description>
</rdf:RDF>
phpinfo()
bcmath
BCMath support => enabled
calendar
Calendar support => enabled
com_dotnet
COM support => enabled
DCOM support => disabled
.Net support => enabled
Directive => Local Value => Master Value
com.allow_dcom => 0 => 0
com.autoregister_casesensitive => 1 => 1
com.autoregister_typelib => 0 => 0
com.autoregister_verbose => 0 => 0
com.code_page => no value => no value
com.typelib_file => no value => no value
ctype
ctype functions => enabled
date
date/time support => enabled
"Olson" Timezone Database Version => 2007.9
Timezone Database => internal
Default timezone => UTC
Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => no value => no value
dom
DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.6.26
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled
filter
Input Validation and Filtering => enabled
Revision => $Revision: 1.52.2.39 $
Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value
ftp
FTP support => enabled
hash
hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128
ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3
tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b
haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4
haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5
haval192,5 haval224,5 haval256,5
iconv
iconv support => enabled
iconv implementation => "libiconv"
iconv library version => 1.9
Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1
json
json support => enabled
json version => 1.2.1
libxml
libXML support => active
libXML Version => 2.6.26
libXML streams => enabled
mysql
MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 5.0.45
Directive => Local Value => Master Value
mysql.allow_persistent => On => On
mysql.connect_timeout => 60 => 60
mysql.default_host => no value => no value
mysql.default_password => no value => no value
mysql.default_port => no value => no value
mysql.default_socket => no value => no value
mysql.default_user => no value => no value
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysql.trace_mode => Off => Off
odbc
ODBC Support => enabled
Active Persistent Links => 0
Active Links => 0
ODBC library => Win32
Directive => Local Value => Master Value
odbc.allow_persistent => On => On
odbc.check_persistent => On => On
odbc.default_db => no value => no value
odbc.default_pw => no value => no value
odbc.default_user => no value => no value
odbc.defaultbinmode => return as is => return as is
odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes
odbc.max_links => Unlimited => Unlimited
odbc.max_persistent => Unlimited => Unlimited
pcre
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 7.3 2007-08-28
Directive => Local Value => Master Value
pcre.backtrack_limit => 100000 => 100000
pcre.recursion_limit => 100000 => 100000
Reflection
Reflection => enabled
Version => $Id: php_reflection.c,v 1.164.2.33.2.47 2007/10/28 13:47:14
iliaa Exp $
session
Session Support => enabled
Registered save handlers => files user
Registered serializer handlers => php php_binary wddx
Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => On => On
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 100 => 100
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => 0 => 0
SimpleXML
Simplexml support => enabled
Revision => $Revision: 1.151.2.22.2.35 $
Schema support => enabled
SPL
SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator,
SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject,
BadFunctionCallException, BadMethodCallException, CachingIterator,
DirectoryIterator, DomainException, EmptyIterator, FilterIterator,
InfiniteIterator, InvalidArgumentException, IteratorIterator,
LengthException, LimitIterator, LogicException, NoRewindIterator,
OutOfBoundsException, OutOfRangeException, OverflowException,
ParentIterator, RangeException, RecursiveArrayIterator,
RecursiveCachingIterator, RecursiveDirectoryIterator,
RecursiveFilterIterator, RecursiveIteratorIterator,
RecursiveRegexIterator, RegexIterator, RuntimeException,
SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage,
SplTempFileObject, UnderflowException, UnexpectedValueException
standard
Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Internal Sendmail Support for Windows => enabled
Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags =>
a=href,area=href,frame=src,input=src,form=,fieldset= =>
a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent => no value => no value
tokenizer
Tokenizer Support => enabled
wddx
WDDX Support => enabled
WDDX Session Serializer => enabled
xml
XML Support => active
XML Namespace Support => active
libxml2 Version => 2.6.26
xmlreader
XMLReader => enabled
xmlwriter
XMLWriter => enabled
xsl
XSL => enabled
libxslt Version => 1.1.17
libxslt compiled against libxml Version => 2.6.26
EXSLT => enabled
libexslt Version => 0.8.13
zlib
ZLib Support => enabled
Stream Wrapper support => compress.zlib://
Stream Filter support => zlib.inflate, zlib.deflate
Compiled Version => 1.2.3
Linked Version => 1.2.3
Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value
Additional Modules
Module Name
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44225&edit=1