#39625 [NEW]: Apache crashes on importStylesheet call

From: Date: Fri, 24 Nov 2006 19:18:30 +0000
Subject: #39625 [NEW]: Apache crashes on importStylesheet call
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-105424@lists.php.net to get a copy of this message
From: eugen dot shvatsky at gmail dot com Operating system: suse 10 PHP version: 5.2.0 PHP Bug Type: XSLT related Bug description: Apache crashes on importStylesheet call Description: ------------ I'm trying to start the XSLT transformation but apache has gone down! Apache/2.0.54 (Suse10) PHP/5.2.0 Reproduce code: --------------- $xsl = new DomDocument(); $xsl->load("file.xsl"); $proc = new XsltProcessor(); $xsl = $proc->importStylesheet($xsl); // on this line apache has gone ... -------------------------------------- <?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ... > <xsl:template match="/"> <xsl:value-of select="document('some_xml.xml')" /> </xsl:template> </xsl:stylesheet> -------------------------------------- 1. file some_xml.xml - dos't exist! but no error, only apache gone down. -------------------------------------- 2. when I try to use diferent quotes in xsl or xml code! -------------------------------------- 3. if i try $proc->setParameter(null,"name","value"); and "value" have different quotes, i get error. Expected result: ---------------- normal error in log!!! or exception Actual result: -------------- Apache GONE DOWN NO ERROR MESSAGE TRY CATCH DOEN'T WORK MESSAGE "0 answer length by SQUID" -- Edit bug report at http://bugs.php.net/?id=39625&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39625&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39625&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39625&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39625&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39625&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39625&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39625&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39625&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39625&r=support Expected behavior: http://bugs.php.net/fix.php?id=39625&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39625&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39625&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39625&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39625&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39625&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39625&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39625&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39625&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39625&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39625&r=mysqlcfg

« previous php.bugs (#105424) next »