From: tony at marston-home dot demon dot co dot uk Operating system: * PHP version: 5.0.0 PHP Bug Type: Feature/Change Request Bug description: New DOM and XSL classes should throw exceptions.
Description: ------------ I have just started using the new DOM and XSL classes in PHP5, and one thing I really find annoying is the difficulty in trapping errors. I tried to use the new try... catch... syntax but this does not work. I have worked out another way of detecting errors from these two classes, but it is very messy. Can they be changed to use the new try...cath... syntax? -- Edit bug report at http://bugs.php.net/?id=29495&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29495&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29495&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29495&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29495&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29495&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29495&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29495&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29495&r=support Expected behavior: http://bugs.php.net/fix.php?id=29495&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29495&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29495&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29495&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29495&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29495&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29495&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29495&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29495&r=float