#45323 [Com]: XMLWriter: Cannot redeclare constructor for class extending XMLWriter

From: Date: Mon, 23 Jun 2008 13:39:52 +0000
Subject: #45323 [Com]: XMLWriter: Cannot redeclare constructor for class extending XMLWriter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-125962@lists.php.net to get a copy of this message
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

« previous php.bugs (#125962) next »