Hi Dan,

Am 01.03.2015 um 15:55 schrieb Dan Ackroyd:
Hi Internals,

This email is to announce the formal opening of discussion for an RFC
to clean up the behaviour of the constructors shown by several
internal classes.

https://wiki.php.net/rfc/internal_constructor_behaviour
I really like this RFC as it reduces WTF moments a lot!

One note from my perspective:
The class "PDORow" is not instantiable and triggers a fatal errors currently. You propose to change the fatal error into an exception. That's definitely better but it's an behavior not possible to implemented in user land code as it would be impossible to get such an object.

To define a class not instantiable in user land would be to define the constructor private/protected.

Btw. What are the reasons to not make this class instantiable / extendable ?

Thoughts?


For reference this was discussed before
https://marc.info/?l=php-internals&m=142150339323854&w=2

As this RFC targets PHP 7, I plan to open the voting before the cut-off date.

cheers
Dan



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

Reply via email to