ID: 45323 Comment by: m dot sedziwoj at gmail dot com Reported By: meandrea at tiscali dot it Status: Open Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 5.2.6 New Comment:
You can't call constructor, because XMLWriter don't have it. Previous Comments: ------------------------------------------------------------------------ [2008-06-20 13:43:30] meandrea at tiscali dot it Description: ------------ executing the code below results in Fatal error: Can not call constructor in ... Reproduce code: --------------- <?php class xmlReportWriter extends XMLWriter { function __construct() { parent::__construct(); } } $xmlReportWriter = new xmlReportWriter(); ?> Expected result: ---------------- I was expecting to be able to use xmlReportWriter as an extended class ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45323&edit=1