From: timo dot hummel at 4fb dot de Operating system: any PHP version: 4.3.11 PHP Bug Type: DOM XML related Bug description: Subclassing DOMXML-Classes don't work
Description: ------------ Subclassing the classes provided by the DOMXML-Extension doesn't work. The usual approach building object-oriented applications is that the developer can subclass classes to save work and increase reliabilty of their applications. DOMXML doesn't seem to support that, see the reproduce code below. Of course, a developer could create a private property of the class TestElement and assign DomElement to this, but this is not the idea behind classes and objects and should be avoided (as this would also cause problems with multiple specialisation of classes, e.g. if TestElement would be specialized more); Reproduce code: --------------- Test case: <?php class TestElement extends DomElement { function TestElement { /* This doesn't work */ DomElement::DomElement("test"); /* This also doesn't work */ parent::DomElement("test"); } } ?> However, this works: <?php $element = new DomElement("test"); ?> Actual result: -------------- Warning: domelement(): Underlying object missing in <file> -- Edit bug report at http://bugs.php.net/?id=33589&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33589&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33589&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33589&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33589&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33589&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33589&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33589&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33589&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33589&r=support Expected behavior: http://bugs.php.net/fix.php?id=33589&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33589&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33589&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33589&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33589&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33589&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33589&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33589&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33589&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33589&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33589&r=mysqlcfg