php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24674 PHP crashes when importing a not well formed stylesheet
Submitted: 2003-07-16 06:41 UTC Modified: 2003-07-24 15:11 UTC
From: ohlesbeauxjours at yahoo dot fr Assigned:
Status: No Feedback Package: XSLT related
PHP Version: 5.0.0b1 (beta1) OS: Win 2000 / Win XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ohlesbeauxjours at yahoo dot fr
New email:
PHP Version: OS:

 

 [2003-07-16 06:41 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-16 12:13 UTC] rrichards@php.net
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.
 [2003-07-24 15:11 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 17:01:31 2024 UTC