#45323 [Opn->Bgs]: XMLWriter: Cannot redeclare constructor for class extending XMLWriter
| From: | rrichards@php.net | Date: | Sat, 12 Jul 2008 10:21:48 +0000 |
| Subject: | #45323 [Opn->Bgs]: XMLWriter: Cannot redeclare constructor for class extending XMLWriter | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126562@lists.php.net to get a copy of this message | ||
ID: 45323
Updated by: rrichards@php.net
Reported By: meandrea at tiscali dot it
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.2.6
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2008-06-23 13:39:51] m dot sedziwoj at gmail dot com
You can't call constructor, because XMLWriter don't have it.
------------------------------------------------------------------------
[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