#17596 [Fbk->Opn]: Unable to reference external DTD with PHP DSO

From: Date: Thu, 03 Oct 2002 18:50:41 +0000
Subject: #17596 [Fbk->Opn]: Unable to reference external DTD with PHP DSO
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21404@lists.php.net to get a copy of this message
ID: 17596 User updated by: william_moore@umanitoba.ca Reported By: william_moore@umanitoba.ca -Status: Feedback +Status: Open Bug Type: XSLT related Operating System: Solaris 2.6 PHP Version: 4.1.2 New Comment: I have not tried with php 4.3.0-dev we are still using 4.1.2 and have not had a chance to udgrade to 4.2.3 yet. Previous Comments: ------------------------------------------------------------------------ [2002-10-03 13:24:38] msopacua@php.net Does this apply with 4.3.0-dev? ------------------------------------------------------------------------ [2002-06-06 10:22:11] william_moore@umanitoba.ca The version of Sablotron I am using is 0.90, compiled via sources with the following configure script: #!/bin/sh env LIBRARY_PATH=/www/lib \ env CPLUS_INCLUDE_PATH=/www/include \ ./configure \ --prefix=/www \ --disable-javascript ------------------------------------------------------------------------ [2002-06-06 06:42:20] msopacua@idg.nl It should indeed - but they are rooted differently. Could you list your sablotron version, so I can verify if it's fixed in the current release? ------------------------------------------------------------------------ [2002-06-05 10:27:12] william_moore@umanitoba.ca I tried specifying file:///absolute_path/htmlent.dtd as you suggested, however this did not make any difference. The PHP cgi was still able to correctly parse the XSL while the PHP DSO did not. One thing I did notice was when I forgot to have the three slashes after file:. When I ran the script via the webserver the page was processed yet the PHP cgi had problems, specifically a Sablotron error indicating it could not find htmlent.dtd in the path I gave. It seems to me that with the PHP DSO it is ignoring the <!DOCTYPE ..> command. Which is odd as the two should be using the same implementation of the XSLT processor right? ------------------------------------------------------------------------ [2002-06-05 07:40:33] msopacua@idg.nl Could you test: <!DOCTYPE xsl:stylesheet SYSTEM "file:///absolute/path/to/htmlent.dtd"> I don't recall whether this was fixed in the current release - but make sure this is the bug first. If I recall correctly moving htmlent.dtd to on of apache/libexec or apache/bin also 'fixes' the issue. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17596 -- Edit this bug report at http://bugs.php.net/?id=17596&edit=1

« previous php.bugs (#21404) next »