Hi,

On 18/01/2015 09:31, Sebastian Bergmann wrote:
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.

+1 here as well. Sounds like material for a new RFC.


Cheers
--
Matteo Beccati

Development & Consulting - http://www.beccati.com/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to