Bug #10306: xslt_process() causes page to be loaded twice

From: Date: Thu, 12 Apr 2001 16:21:25 +0000
Subject: Bug #10306: xslt_process() causes page to be loaded twice
Groups: php.dev 
Request: Send a blank email to php-dev+get-51503@lists.php.net to get a copy of this message
From: jplock@bigfoot.com 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. 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. -- Edit Bug report at: http://bugs.php.net/?id=10306&edit=1

« previous php.dev (#51503) next »