From:             ohlesbeauxjours at yahoo dot fr
Operating system: Win 2000 / Win XP
PHP version:      5.0.0b1 (beta1)
PHP Bug Type:     XSLT related
Bug description:  PHP crashes when importing a not well formed stylesheet

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 bug report at http://bugs.php.net/?id=24674&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24674&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24674&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24674&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24674&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24674&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24674&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24674&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24674&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24674&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24674&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24674&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24674&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24674&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24674&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24674&r=gnused

Reply via email to