From: ds at cyberspace dot co dot za
Operating system: WinXP
PHP version: 5CVS-2004-03-02 (dev)
PHP Bug Type: DOM XML related
Bug description: domDocument::load() called from class method crashes
Description:
------------
Calling domDocument::load() from within a class method PHP crashes.
Reproduce code:
---------------
<?php
class docLoader {
public function __construct($xslFile) {
$xsltDoc = domDocument::load($xslFile);
}
}
$doc = new docLoader('file.xsl'); // does not work
// however
$xsltDoc = domDocument::load('file.xsl'); // still works
?>
Expected result:
----------------
Should return object
Actual result:
--------------
Both PHP CLI and Apache module crash. Only when domDocument::load() is
called from a class method.
--
Edit bug report at http://bugs.php.net/?id=27467&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27467&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27467&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27467&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27467&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27467&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27467&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27467&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27467&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27467&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27467&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27467&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27467&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27467&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27467&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27467&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27467&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27467&r=float