php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45323 XMLWriter: Cannot redeclare constructor for class extending XMLWriter
Submitted: 2008-06-20 13:43 UTC Modified: 2008-07-12 10:21 UTC
From: meandrea at tiscali dot it Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: meandrea at tiscali dot it
New email:
PHP Version: OS:

 

 [2008-06-20 13:43 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-23 13:39 UTC] m dot sedziwoj at gmail dot com
You can't call constructor, because XMLWriter don't have it.
 [2008-07-12 10:21 UTC] rrichards@php.net
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


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Dec 06 11:00:02 2025 UTC