|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7631 Log file created but not written to.
Submitted: 2000-11-03 18:32 UTC Modified: 2001-07-30 18:31 UTC
From: Assigned:
Status: Closed Package: Sablotron XSL
PHP Version: 4.0 Latest CVS (03/11/2000) OS: Mandrake 7.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2000-11-03 18:32 UTC]
The following script causes the requested logfile to be
created, but it is never written to:


/* Intentionally introduce an extra space into file name. */
$xml_file = 'slashdot.xml';
$xsl_file = 'slashdot.xsl';

$xslt = xslt_create();
if (!xslt_openlog($xslt, '/tmp/sablot.log')) {
    echo "Failed to set up log file.\n";
if (!xslt_run($xslt, $xsl_file, $xml_file)) {
    echo "<pre>xslt_run() failed\n";
    echo "Description: " . xslt_error() . "\n";
    echo "All information:\n";
    echo "</pre>\n";
} else {
    echo xslt_fetch_result($xslt);

When I remove the logfile and do this from the command
line, it works:

shanna% tail /tmp/sablot.log 
tail: /tmp/sablot.log: No such file or directory

shanna% sabcmd --log-file=/tmp/sablot.log slashdot.xsl slashdot.xml
Error [code:2] [URI:file:/home/torben/public_html/phptest/slashdot.xml] [line:5] 
  XML parser error 4: not well-formed

shanna% tail /tmp/sablot.log                                       
Parsing 'file:/home/torben/public_html/phptest/slashdot.xsl'...
Parse done in 0.089 seconds
Parsing 'file:/home/torben/public_html/phptest/slashdot.xml'...
XML parser error 4: not well-formed
Destroying the hash table: 28 items in 2048 buckets
Destroying the arena: 6339 B asked, 65536 B allocated


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-30 18:31 UTC]
Please upgrade to the new XSLT extension (--enable-xslt 
--with-xslt-sablot) as development is no longer focused on 
the sablot extension.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC