Re: [PHP-DEV] __construct is like a normal method but without E_STRICT

2013-10-02 Thread Seva Lapsha
> > Am I the only one thinking this, is there actually someone who is using > > __construct as re-initialising method? > > > php doesn't invoke the parent's constructor from the subclass if the > subclass also have a constructor, so in that case calling > parent::__construct() manually is your only

Re: [PHP-DEV] __construct is like a normal method but without E_STRICT

2013-10-01 Thread Ferenc Kovacs
On Thu, Sep 26, 2013 at 11:19 PM, Robert Stoll wrote: > Heya > > > > I would like to have some opinions on the topic inconsistency between > methods and __construct > > See the following code: > > > > class A { > > function __construct($a) {} > > function foo($a)