Bug #12931 Updated: Cannot use http:// url in xslt_run
| From: | sterling@php.net | Date: | Mon, 03 Sep 2001 18:31:03 +0000 |
| Subject: | Bug #12931 Updated: Cannot use http:// url in xslt_run | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64994@lists.php.net to get a copy of this message | ||
ID: 12931
Updated by: sterling
Reported By: darron@javelindigital.com
Old Status: Closed
Status: Bogus
Bug Type: Sablotron XSL
Operating System: Linux 2.2.19
PHP Version: 4.0.6
New Comment:
Sorry Jani :)
Previous Comments:
------------------------------------------------------------------------
[2001-09-03 14:30:48] sterling@php.net
Not a PHP bug, report to the Sablotron Folks....
------------------------------------------------------------------------
[2001-08-23 13:23:18] darron@javelindigital.com
This works fine:
<?php
$processor = xslt_create();
xslt_run($processor, 'diary.xsl', 'test.xml');
print xslt_fetch_result($processor);
xslt_free($processor);
?>
This doesn't work:
<?php
$processor = xslt_create();
xslt_run($processor, 'diary.xsl',
'http://baby.froese.org/baby.xml');
print xslt_fetch_result($processor);
xslt_free($processor);
?>
I get this error:
Fatal error: cannot read from URI
'http://baby.froese.org/baby.xml' in
/home/darron/public_html/xslt.php on line 4
That URI exists and validates just fine.
I've tried this on multiple machines (Linux, Apache
1.3.19/20, expat-1.95.2, sablotron-0.65) running PHP 4.0.6
and 4.0.7RC1 and they fail:
PHP 4.0.7RC1 compiled:
./configure \
--with-apxs=/usr/local/apache_1.3.19/bin/apxs \
--with-mysql=/usr/local/mysql-3.23.38 \
--with-pgsql=/usr/local/pgsql-7.1.2 \
--enable-ftp \
--with-curl \
--with-zlib \
--with-pspell \
--with-ldap \
--with-pdflib=/usr/local/pdflib-4 \
--with-imap=/usr/local/src/imap-4.5 \
--with-zlib-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-gd \
--with-ttf \
--with-t1lib \
--with-xml \
--with-swf=/usr/local \
--with-ming \
--with-sablot \
--with-xslt-sablot \
--enable-sablot-errors-descriptive \
--with-expat-dir=/usr \
--with-java=/usr/local/jdk \
--with-gettext \
--with-mcrypt \
--with-mhash \
--enable-wddx \
--enable-sockets \
--enable-calendar \
--enable-trans-sid \
--enable-track-vars=yes \
--enable-magic-quotes=yes
PHP 4.0.6 compiled:
./configure \
--with-apxs=/usr/local/apache_1.3.20/bin/apxs \
--with-mysql=/usr/local/mysql-3.23.39 \
--with-pgsql=/usr/local/pgsql-7.1.2 \
--with-pdflib=/usr/local/pdflib-4 \
--with-curl \
--enable-ftp \
--with-ldap \
--with-imap=/usr/local/src/imap-4.5 \
--with-zlib \
--with-jpeg-dir=/usr/lib \
--with-tiff-dir=/usr/lib \
--with-zlib-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-gd \
--with-ttf \
--with-xml \
--with-sablot \
--with-xslt-sablot \
--with-sybase=/usr/local/sybase \
--enable-trans-sid \
--enable-track-vars=yes \
--enable-magic-quotes=yes \
--enable-inline-optimization
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12931&edit=1