I am extending one of the SPL (Standard PHP Library) classes and I am unable to call the parent\'s constructor. Here is the error I am getting:
Fatal erro
You may hack it like this:
if (in_array('__construct', get_class_methods(get_parent_class($this)))) { parent::__construct(); }
but it's helpless.
just declare constructor explicitly for every class. it's the right behavior.