php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10306 xslt_process() causes page to be loaded twice
Submitted: 2001-04-12 12:21 UTC Modified: 2001-04-24 17:41 UTC
From: jplock at bigfoot dot com Assigned:
Status: Closed Package: Sablotron XSL
PHP Version: 4.0 Latest CVS (12/04/2001) OS: FreeBSD 4.2
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jplock at bigfoot dot com
New email:
PHP Version: OS:

 

 [2001-04-12 12:21 UTC] jplock at bigfoot dot com
In one of my scripts, I make a function call to a function which contains the xslt_process() function. After this function, I am inserting an entry into my database for logging purposes.

test.php
--------
function html_transform($xsl, $xml) {
   if (!xslt_process($xsl, $xml, &$html)) {
      header("Status: 500 Server Error");
      echo xslt_error();
      echo "ERROR ".$php_error_msg;
      exit;
   }
   else {
      return($html);
   }
}

$xml = <loaded from file>;
$xsl = <loaded from file>;
$html = html_transform($xsl,$xml);
echo $html;
mysql_query("INSERT INTO table...");
echo mysql_insert_id();

the insert id is incrementing my 2, unless I disable the xslt_process() function.

Really strange and I think its a bug in the xslt_process() function.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-12 14:35 UTC] jplock at bigfoot dot com
Ok, this is just plain wierd...it decided to stop doing that...I will investigate further and see if I can reproduce it.
 [2001-04-24 17:41 UTC] sterling@php.net
Well if it stopped, then I'll mark the bug as closed.  If
starts happening again, or you have more information,
re-open this bug, or open up a new bug.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jul 13 07:01:25 2020 UTC