Must I call parent::__construct() in the first line of the constructor? : <p>I know in Java, <code>super()</code> in a constructor has to be called as the first line of an overridden constructor.</p>

<p>Does this also apply to the <code>parent::__construct()</code> call in PHP?</p>

<p>I found myself writing an Exception class like this:</p>

<pre><code>class MyException extends Exception {

  public function __construct($some_data) {

    $message = '';
    $message .= format_data($some_data);
    $message .= ' was passed but was not expected';

    parent::__construct($message);
  }

}
</code></pre>

<p>and I wondered if this would be considered an error/bad practice in PHP.</p>
