Re: Bug #14442: Segmentation fault when using xslt_process()

From: Date: Thu, 13 Dec 2001 12:03:21 +0000
Subject: Re: Bug #14442: Segmentation fault when using xslt_process()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-73551@lists.php.net to get a copy of this message
Hi ;) Look into the manual. The synopsis for the function is wrong, but the examples show how to do this. When I ran Your function it really did crash... But it's not surprising me now. Check this out: <?php $xh = xslt_create(); $xsl = fopen("/web/xdom.pl/xslt/xprohomepage/homepage.xsl", "r"); $xml = fopen("test.xml", "r"); $xslc = fread($xsl, filesize("/web/xdom.pl/xslt/xprohomepage/homepage.xsl")); $xmlc = fread($xml, filesize("test.xml")); /* This could be like this, when You want it straigh from the files echo xslt_process($xh, '/web/xdom.pl/classes/test.xml', '/web/xdom.pl/xslt/xprohomepage/homepage.xsl'); */ /* Use this one if You want it variable based */ echo xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, array('/_xml' => $xmlc, '/_xsl' => $xslc)); xslt_free($xh); ?> Greets ;) -- Chris Jarecki IT Project Manager Ipro http://www.ipro.pl/

« previous php.dev (#73551) next »