#24674 [Opn->Fbk]: PHP crashes when importing a not well formed stylesheet
| From: | rrichards@php.net | Date: | Wed, 16 Jul 2003 17:13:25 +0000 |
| Subject: | #24674 [Opn->Fbk]: PHP crashes when importing a not well formed stylesheet | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44142@lists.php.net to get a copy of this message | ||
ID: 24674
Updated by: rrichards@php.net
Reported By: ohlesbeauxjours at yahoo dot fr
-Status: Open
+Status: Feedback
Bug Type: XSLT related
Operating System: Win 2000 / Win XP
PHP Version: 5.0.0b1 (beta1)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Under windows you will definitely run into the issue in Bug #24661 once
upgrading. The method names have also changed in xsl since beta1. i.e.
it is now importStylesheet(). Same naming convention for other methods.
Previous Comments:
------------------------------------------------------------------------
[2003-07-16 06:41:02] ohlesbeauxjours at yahoo dot fr
Description:
------------
While correcting the bug #24634 (which also concerns import_stylesheet
method), it might be useful to prevent PHP from crashing, when you
import a not well-formed stylesheet.
Reproduce code:
---------------
$dom2->loadxml(implode(file("index.xml")));
$dom->loadxml(implode(file("index.xsl")));
$proc->import_stylesheet($dom);
... since there is a just a warning if the file "index.xsl" is badly
formed, the script continues to execute, and crashes the line after,
when importing the structure with import_stylesheet.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24674&edit=1