|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-24 20:58 UTC] andyjunkie at tiscali dot it
[2007-06-01 14:27 UTC] andyjunkie at tiscali dot it
[2007-06-01 14:33 UTC] andyjunkie at tiscali dot it
[2007-06-01 15:00 UTC] rrichards@php.net
[2007-06-08 01:12 UTC] stas@php.net
[2007-06-20 14:07 UTC] andyjunkie at tiscali dot it
[2007-06-25 23:40 UTC] sniper@php.net
[2007-07-03 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 22:00:01 2025 UTC |
Description: ------------ an attempt to load an xsl template file, which has an open/close tag mismatch problem, finishes with a segmentation fault. Always works ok on windows system (generates an error message) but crashes on Linux Debian Etch. Problem is reproduced on 5.1.6 and 5.2.2 versions of PHP, no other versions have been tested. Reproduce code: --------------- class Xtp extends XSLTProcessor { public function __construct() { $this->registerPHPFunctions(); $xsl = new DOMDocument(); $xsl->resolveExternals = true; $xsl->substituteEntities = true; if ($template = $this->locateTemplate()) { $xsl->load($template); $this->importStyleSheet($xsl); /* SEG FAULT */ } } Expected result: ---------------- An error message like this: DOMDocument::load() [function.DOMDocument-load]: Opening and ending tag mismatch: ... Actual result: -------------- error handling function is called (if any is set with set_error_handler($func)), on the return of this function segfault appears.