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. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php