PHP 4.0 Bug #10306 Updated: xslt_process() causes page to be loaded twice
| From: | jplock at bigfoot dot com | Date: | Thu, 12 Apr 2001 18:35:16 +0000 |
| Subject: | PHP 4.0 Bug #10306 Updated: xslt_process() causes page to be loaded twice | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51507@lists.php.net to get a copy of this message | ||
ID: 10306
User Update by: jplock@bigfoot.com
Status: Open
Bug Type: Sablotron XSL
Description: xslt_process() causes page to be loaded twice
Ok, this is just plain wierd...it decided to stop doing that...I will investigate further and see if
I can reproduce it.
Previous Comments:
---------------------------------------------------------------------------
[2001-04-12 12:21:25] jplock@bigfoot.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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10306