Extend Class with Final Constructor on PHP
<p>I want extend class which have final constructor (in my case it's SimpleXMLElement), but i have problems because when i use:</p>

<pre><code>    class myclass extends SimpleXMLElement {
        function __construct($xmlVersion='1.0', $xmlEncoding='ISO-8859-1', $rootName='root'){
            parent::__construct("&lt;?xml version='$xmlVersion' encoding='$xmlEncoding'?&gt;&lt;$rootName /&gt;");
        }
</code></pre>

<p>I get error:</p>

<blockquote>
  <p>Fatal error: Cannot override final
  method SimpleXMLElement::__construct()</p>
</blockquote>

<p>When i delete constructor i get this error:</p>

<blockquote>
  <p>Fatal error: Uncaught exception
  'Exception' with message
  'SimpleXMLElement::__construct()
  expects at least 1 parameter, 0 given'</p>
</blockquote>

<p>I miss something or doesn't understand how properly call parent constructor which is final.
I don't want override methods just expand class, but i can't expand because it required __construct(). So i missed something and back where started.</p>

<p>Can somebody explain where i was wrong?</p>
