From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.2
PHP version:      4.0 Latest CVS (12/04/2001)
PHP Bug Type:     Sablotron XSL
Bug description:  xslt_process() causes page to be loaded twice

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.

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

$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.

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to