Re: Class constructor behaviour

From: Date: Sun, 18 Jan 2015 08:31:49 +0000
Subject: Re: Class constructor behaviour
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-80729@lists.php.net to get a copy of this message
Am 17.01.2015 um 15:02 schrieb Dan Ackroyd: > class constructors <nitpicking> PHP does not have class constructors (static method automatically invoked when a class is initialized). It only supports object constructors (method automatically invoked when an object is created). </nitpicking> > Several classes in PHP return null when there is a problem in the > parameters passed to their constructor e.g. > > [...] > > Several constructors check the parameters that they are given.....and > then just give a warning when they are not acceptable. e.g. > > [...] > > Some constructors check the parameters they are given, and then emit > either a 'Catchable fatal error' error or other error e.g. Classes implemented in C / provided by PHP must not have any of the above issues. +1 for fixing them.

« previous php.internals (#80729) next »