From:             bat at flurf dot net
Operating system: Windows XP
PHP version:      4CVS-2007-02-28 (snap)
PHP Bug Type:     XSLT related
Bug description:  DOM/EXSLT not enabled in Windows binaries

Description:
------------
In a Windows binary of PHP4, enable DOMXML and look at a phpinfo() page. 
DOM/XSLT is listed as enabled, but DOM/EXSLT, a feature built in to
libxslt, is not enabled.  There appears to be no way to enable it, short
of perhaps fixing the switch in the standard/snapshot Windows build
scripts that are disabling the feature.

Reproduce code:
---------------
Ensure that your PHP.ini contains the line:
  extension=php_domxml.dll

Look at a phpinfo() page, in the domxml section, typically about halfway
down the page.

Mine contains these settings only:
DOM/XML         enabled
DOM/XML API Version     20020815
libxml Version  20626
HTML Support    enabled
XPath Support   enabled
XPointer Support        enabled
DOM/XSLT        enabled
libxslt Version         1.1.17
libxslt compiled against libxml Version         2.6.26


Expected result:
----------------
Should also contain:
DOM/EXSLT       enabled
libexslt Version        x.x.xx

Actual result:
--------------
Consequence: attempting to use the exslt:node-set() function to get past
an egregious limitation in XSLT 1.0 gives the warning messages as follows
on any Windows build of PHP4:

Warning: process() [function.process]: xmlXPathCompOpEval: function
node-set not found in ...
Warning: process() [function.process]: Unregistered function in ...

This indicates that libxslt is working, but access to its EXSLT features
has been prevented.  The phpinfo() result indicates that this prevention
has occurred at build time, not as a consequence of any PHP script.

On a standard Linux build, this function works perfectly well.  It is
therefore a bug in the way PHP is being built.  Note: this is not a bug in
libxslt!

-- 
Edit bug report at http://bugs.php.net/?id=40665&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40665&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40665&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40665&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40665&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40665&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40665&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40665&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40665&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40665&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40665&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40665&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40665&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40665&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40665&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40665&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40665&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40665&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40665&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40665&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40665&r=mysqlcfg

Reply via email to